- 论坛徽章:
- 0
|
本帖最后由 dudry 于 2012-06-27 10:42 编辑
回复 4# anonymous0502
named.conf里增加了一个zone:
zone "s1" IN {
type master;
file "s1.zone";
allow-update { none; };
-=-=-=-=-=-=-=-=-==-=-=-=-=--=-
[root@s1 named]# cat s1.zone
$TTL 86400
@ IN SOA s1 root.sywzl.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS localhost.
IN A 192.168.1.10
-=-=-=-=-===-=-=-=-=-=-=-=-=-
[root@s1 ~]# cat /etc/resolv.conf
nameserver 192.168.1.10
-=-=-=-=-=-=-=-=-==-=-=-=-=--=-
但是在客户端可以解析s1,不能ping通
C:\Documents and Settings\Administrator>nslookup s1
Server: www.sywzl.com
Address: 192.168.1.10
Name: s1
Address: 192.168.1.10
C:\Documents and Settings\Administrator>ping s1
Ping request could not find host s1. Please check the name and try again.
|
|