1/* 2 * Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC") 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 10 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 11 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 12 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 13 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 14 * PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17/* Id: named.conf,v 1.2 2011/10/20 22:01:48 each Exp */ 18 19/* 20 * This is a sample named.conf file that uses the DLZ module defined in 21 * dlz_example.c. It sets up a zone 'example.nil' which can accept DDNS 22 * updates. 23 * 24 * By default, when run, the zone contains the following records: 25 * 26 * example.nil. 3600 IN SOA example.nil. hostmaster.example.nil. ( 27 * 123 900 600 86400 3600 28 * ) 29 * example.nil. 3600 IN NS example.nil. 30 * example.nil. 1800 IN A 10.53.0.1 31 * 32 * Additionally, a query for 'source-addr.example.nil/TXT' is always 33 * answered with the source address of the query. This is used to 34 * demonstrate the code that retreives client information from the 35 * caller. 36 * 37 * To use this driver, "dlz_external.so" must be moved into the working 38 * directory for named. 39 */ 40 41options { 42 allow-transfer { any; }; 43 allow-query { any; }; 44 notify yes; 45 recursion no; 46}; 47 48dlz "example" { 49 database "dlopen ./dlz_example.so example.nil"; 50}; 51