[root@why ~]# cat /etc/named.conf
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* 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;
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "jamond.net"IN{
type master;
file "jamond.net";
allow-update {none;};
};
zone "1.168.192.in-addr.arpa"IN{
type master;
file "192.168.1.rev";
allow-update {none;};
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
include "/etc/rndc.key";
[root@why ~]# cat /var/named/jamond.net
$TTL 86400
@ IN SOA why.jamond.net. root.why.jamond.net.(
1053891162
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS why.jamond.net.
IN MX 5 why.jamond.net.
why IN A 192.168.1.200
win01 IN A 192.168.1.201
win02 IN A 192.168.1.88
www IN CNAME why.jamond.net.
[root@why ~]# cat /var/named/192.168.1.rev
$TTL 86400
@ IN SOA why.jamond.net. root.why.jamond.net.
(
1053892104
1053892104
3H
15W
1W
1D )
IN NS why.jamond.net.
200 IN PTR why.jamond.net.
201 IN PTR win01.jamond.net.
88 IN PTR win02.jamond.net.