named.conf revision 3ebda3f46b62b9644ef963e56c6c441e96693011
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * Copyright (C) 2004, 2007, 2011, 2015 Internet Systems Consortium, Inc. ("ISC")
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * Copyright (C) 1999-2001 Internet Software Consortium.
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * Permission to use, copy, modify, and/or distribute this software for any
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * purpose with or without fee is hereby granted, provided that the above
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * copyright notice and this permission notice appear in all copies.
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington/* $Id: named.conf,v 1.60 2011/03/03 23:47:31 tbox Exp $ */
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * This is a worthless, nonrunnable example of a named.conf file that has
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * every conceivable syntax element in use. We use it to test the parser.
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington * It could also be used as a conceptual template for users of new features.
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington# So are shell-style comments
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington additional-from-auth true;
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington additional-from-cache false;
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington version "my version string";
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington random-device "/dev/random";
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington directory "/tmp";
408633bd04e39e50951d6800f8bbc9838adac6d1Brian Wellington sig-validity-interval 33;
named-xfer "/usr/libexec/named-xfer"; // _PATH_XFER
dump-file "named_dump.db"; // _PATH_DUMPFILE
statistics-file "named.stats"; // _PATH_STATS
memstatistics-file "named.memstats"; // _PATH_MEMSTATS
// forwarding behavior, i.e. ask the forwarders first, and if that
notify explicit;
zone "slave.demo.zone" {
file "slave.demo.zone";
ixfr-base "slave.demo.zone.ixfr"; // File name for IXFR transaction log file
foo.com. 4 3 2 "abdefghijklmnopqrstuvwxyz";
zone "view-zone.com" {
zone "stub.demo.zone" {
file "stub.demo.zone";
file "cache.db";
// pubkey 257 255 1 "AQP2fHpZ4VMpKo/jc9Fod821uyfY5p8j5h/Am0V/KpBTMZjdXmp9QJe6yFRoIIzkaNCgTIftASdpXGgCwFB2j2KXP/rick6gvEer5VcDEkLR5Q==";
"." 257 255 1 "AQP2fHpZ4VMpKo/jc9Fod821uyfY5p8j5h/Am0V/KpBTMZjdXmp9QJe6yFRoIIzkaNCgTIftASdpXGgCwFB2j2KXP/rick6gvEer5VcDEkLR5Q==";
zone "disabled-zone.com" {
zone "non-default-acl.demo.zone" {
grant root.domain. subdomain host.domain. A MX CNAME;
grant sub.root.domain. wildcard *.host.domain. A;
grant root.domain. name host.domain. a ns md mf cname soa mb mg
grant foo.bar.com. self foo.bar.com. a;
transfers 0; // not implemented
* file "named.run"; // note: stderr is used instead
* // of "named.run" if the server
* // debugging.
default_syslog; // as you want