; Bind Version 8.x Example named.conf File
options {
directory "/etc/namedb";
/*
* If there is a firewall between you
* and nameservers you want to talk to,
* you might need to uncomment the
* query-source directive below.
* Previous versions of BIND always
* asked questions using port 53,
* but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
logging {
category queries { null; };
category lame-servers { null; };
category cname { null; };
category db { default_syslog; };
category load { default_syslog; };
category notify { default_syslog; };
category security { default_syslog; };
category update { default_syslog; };
category xfer-in { default_syslog; };
category xfer-out { default_syslog; };
};
zone "." {
type hint;
file "root.cache";
};
// Localhost reverse lookup
zone "127.in-addr.arpa" {
type master;
file "localhost.rev";
};
// Example MASTER zone
zone "mysub.fdns.net" {
type master;
file "mysub.domain";
};
// Example SLAVE zone
zone "myothersub.fdns.net" {
type slave;
file "myothersub.domain";
masters { 224.0.0.1; };
};
zonefile example
; Bind Version 8.x Example Zone File
@ IN SOA mydomain.fdns.net. root.mydomain.fdns.net. (
199903091 ; serial
14400 ; refresh, seconds
7200 ; retry, seconds
198000 ; expire, seconds
86400 ) ; minimum, seconds
NS ns1.mydomain.fdns.net.
NS ns2.mydomain.fdns.net.
MX 10 mybox.mydomain.fdns.net. ; MX
ns1.mydomain.fdns.net. IN A 1.1.1.1
ns2.mydomain.fdns.net. IN A 1.1.1.2
mybox.mydomain.fdns.net. IN A 1.1.1.3
ftp IN CNAME mybox.mydomain.fdns.net.
www IN CNAME mybox.mydomain.fdns.net.
mail IN CNAME mybox.mydomain.fdns.net.
news IN CNAME mybox.mydomain.fdns.net.
System Status
Total Users: 6083
Total Domains: 4348
IPSec Keys: 13
TXT Records: 137
MX Records: 117