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
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
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 "hosthouse" IN {
type master;
file "hosthouse.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.local";
allow-update { none; };
};
include "/etc/rndc.key";
/var/named/hosthouse.zone
$TTL 86400
$ORIGIN sat.hosthouse.com.
@ 1D IN SOA sat.hosthouse.com. root.sat.hosthouse.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS sat.hosthouse.com.
sat 1D IN A 192.168.1.53
www 1D IN CNAME sat.hosthouse.com.
ftp 1D IN CNAME sat.hosthouse.com.
mail 1D IN CNAME sat.hosthouse.com.
/var/named/192.168.1.local
$TTL 86400
@ IN SOA sat.hosthouse.com. root.sat.hosthouse.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS sat.hosthouse.com.
53 IN PTR sat.hosthouse.com.
53 IN PTR www.hosthouse.com.
53 IN PTR ftp.hosthouse.com.
53 IN PTR mail.hosthouse.com.
$TTL 86400
$ORIGIN sat.hosthouse.com. (这一行去掉)
@ 1D IN SOA sat.hosthouse.com. root.sat.hosthouse.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS sat.hosthouse.com. (这一行也去掉)
sat 1D IN A 192.168.1.53 (这一行也去掉)
IN NS hosthouse.com. (加上)
www 1D IN CNAME sat.hosthouse.com.
ftp 1D IN CNAME sat.hosthouse.com.
mail 1D IN CNAME sat.hosthouse.com.
/var/named/192.168.1.local
$TTL 86400
@ IN SOA sat.hosthouse.com. root.sat.hosthouse.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS sat.hosthouse.com.