|
|
小弟在内网配置了一个DNS服务作测试用 配置文件如下:
//------------------/etc/named.config 加入了以下片断-----------------
zone "ggyy.com" {
type master;
file "caching-example/named.test";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" {
type master;
file "caching-example/named.test2";
allow-update { none; };
};
//-----------------named.test 文件--------------------------------------
$TTL 600
@ IN SOA test4.ggyy.com. root.test4.ggyy.com. (
2002120601 ; Serial
28800 ; Refresh
14400 ; Retry
720000 ; Expire
86400 ) ; minimum
@ IN NS test4.ggyy.com.
@ IN MX 10 test4.ggyy.com.
* IN A 192.168.1.203
www IN A 192.168.1.223
//------------------named.test2 文件-------------------------------------------
$TTL 600
@ IN SOA test4.ggyy.com. root.test4.ggyy.com. (
2002120601 ; Serial
28800 ; Refresh
14400 ; Retry
720000 ; Expire
86400 ) ; minimum
@ IN NS test4.ggyy.com.
88 IN PTR test4.ggyy.com.
223 IN PTR www.ggyy.com.
测试的时候 ping www.ggyy.com 返回Ping request could not find host hoho.ggyy.com. Please check the name and try again.
但是 nslookup www.ggyy.com 返回
Server: test4.ggyy.com
Address: 192.168.1.88
Name: sina.ggyy.com
Address: 192.168.1.203
反解也没有问题
好像没有错啊,为什么ping不通呢?
是不是 那个 * IN A 192.168.1.203
有问题? 我想把凡是.ggyy.com结尾的都指向203这个机器,这样做有问题么? |
|