- 论坛徽章:
- 0
|
我的name.comf.local文件如下:
- zone "dratek.net" in {
- type master;
- file "/etc/bind/db.xxxx.net";
- };
- zone "254.108.202.in-addr.arpa" in {
- type master;
- file "/etc/bind/db.202.108.254";
- };
复制代码
db.xxxx.net文件如下:
- ;
- ; BIND data file for local loopback interface
- ;
- $TTL 604800
- @ IN SOA dns.xxxx.net. root.dns.xxxx.net. (
- 20070110 ; Serial
- 604800 ; Refresh
- 86400 ; Retry
- 2419200 ; Expire
- 604800 ) ; Negative Cache TTL
- @ IN NS dns.xxxx.net.
- @ IN MX 10 mail.xxxx.net.
- xxxx.net. IN CHAME www.xxxx.net.
- dns.xxxx.net. IN A 192.168.3.112
- www.xxxx.net. IN A 202.108.254.100
- mail.xxxx.net. IN A 202.108.254.101
- gw.xxxx.net. IN A 202.108.254.102
- gw2.xxxx.net. IN A 202.108.254.103
- search.xxxx.net. IN A 202.108.254.104
- search2.xxxx.net. IN A 202.108.254.105
- mirror.xxxx.net. IN A 202.108.254.106
- push.xxxx.net. IN A 202.108.254.107
- push2.xxxx.net. IN A 202.108.254.108
复制代码
反向解析我就不放上来了,我测试是没问题的....
问题是:用nslookup输入例如:dns.xxxx.net域名的时候出现错误,错误如下:
- mscong@dns:/etc/bind$ nslookup
- > dns.xxxx.net
- Server: 192.168.3.112
- Address: 192.168.3.112#53
- ** server can't find dns.xxxx.net: SERVFAIL
- >
复制代码
操作系统为Ubuntu,bind版本为bind9......正向解析这里我好象写错了,不过反复测试找不到原因,请各位大大帮忙!
备注:我已经将/etc/hosts 清掉,已经更改/etc/resolv.conf,请各位帮我看下我的正向解析是不是有问题! |
|