zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none;};
};
zone "love.com" IN {
type master;
file "db.love.com";
allow-update { none;};
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "db.192.168.1;
allow-update { none;};
};
2.db.love.com
$TTL 86400
@ IN SOA www.love.com. root.www.love.com.(
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 );minimum
IN NS www.love.com.
www.love.com. IN A 192.168.1.111
3.db.192.168.1
$TTL 86400
@ IN SOA www.love.com. root.www.love.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS www.love.com.
111 IN PTR www.love.com.
配置完后运行
[root@www root]# rndc restart
rndc: 'restart' is not implemented
[root@www root]# service named restart
Stopping named: rndc: connect failed: connection refused
[FAILED]
Starting named: [ OK ]
[root@www root]# nslookup www.love.com
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
;; connection timed out; no servers could be reached