Examples


The simplest configuration file that is still realistically useful is one which simply defines a hint zone that has a full path to the root servers file:

 zone "." in {         type hint;         file "/var/named/root.cache"; };

Here's a more typical real-world example:

 /*  * A simple BIND 8 configuration  */ logging {         category lame-servers { null; };         category cname { null; }; }; options {         directory "/var/named"; }; controls {         inet * port 52 allow { any; };                  // a bad idea         unix "/var/run/ndc" perm 0600 owner 0 group 0;  // the default }; zone "isc.org" in {         type master;         file "master/isc.org"; }; zone "http://vix.com" in {         type slave;         file "http://slave/vix.com";         masters { 10.0.0.53; }; }; zone "0.0.127.in-addr.arpa" in {         type master;         file "master/127.0.0"; }; zone "." in {         type hint;         file "root.cache"; };


The Concise Guide to DNS and BIND
The Concise Guide to DNS and BIND
ISBN: 0789722739
EAN: 2147483647
Year: 1999
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net