|
|
本人的主机名为www.love.com ip 为192.168.1.111
系统为RAS3 BIND 为 BIND 9.2.2
etc/resolv.conf 内容 为:nameserver 192.168.1.111
DNS 配置如下:
1、 文件named.conf 内容:
options {
directory "/var/named";
};
zone "." IN {
type hint;
file "named.ca";
};
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
[root@www root]# ping www.love.com
ping: unknown host www.love.com
请问我错在哪了,帮个忙,谢谢 |
|