Here is the /etc/named.conf file: options { directory "/var/named"; /* * 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; };
// // a caching only nameserver config // zone "." IN { type hint; file "caching-example/named.ca"; };
zone "localhost" IN { type master; file "caching-example/localhost.zone"; allow-update { none; }; };
zone "0.0.127.in-addr.arpa" IN { type master; file "caching-example/named.local"; allow-update { none; }; };
zone "osguides.net" IN { type master; file "osguides.net"; allow-update { none; }; };
Here is the /var/named/osguides.net file:
; *** DNS Zone of OSGuides.net *** $TTL 86400
@ IN SOA ns1.osguides.net. ns2.osguides.net. ( 1192083306 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 10800 ) ; Minimum
osguides.net. IN NS ns1.osguides.net. osguides.net. IN NS ns2.osguides.net ns1.osguides.net. IN A 213.240.227.74 ns2.osguides.net. IN A 213.240.227.74 osguides.net. IN A 213.240.227.74 webmail.osguides.net. IN A 213.240.227.74 mail.osguides.net. IN A 213.240.227.74 ftp.osguides.net. IN CNAME osguides.net. www.osguides.net. IN CNAME osguides.net. osguides.net. IN MX 10 mail.osguides.net.