LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 680|回复: 0

DNS 配置问题(已解决)

[复制链接]
发表于 2010-8-17 17:16:39 | 显示全部楼层 |阅读模式
主要是语法问题,多亏了webmin软件帮我检查语法。

neo@gentoo /etc/bind $ host www.testdns.com
Host www.testdns.com not found: 2(SERVFAIL)

named.conf

options {
directory "/var/bind";
};

zone "." IN {
type hint;
file "pri/named.ca";

};

zone "localhost" IN {
type master;
file "pri/localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arap" IN {
type master;
file "pri/127.zone";
allow-update { none; };
};

zone "testdns.com" IN {
type master;
file "pri/testdns.com.dns";
allow-update { none; };

};

zone "0.168.192.in-addr.arpa" IN {
type master;
file "pri/testdns.com.rev";
allow-update { none; };
};

logging {
channel default_syslog {
file "/var/log/named/named.log" versions 3 size 5m;
severity debug;
print-time yes;
print-severity yes;
print-category yes;
};
category default { default_syslog; };
};
include "/etc/bind/rndc.key";



testdns.com.dns

$TTL 86400
$ORIGIN testdns.com.
@ IN SOA testdns.com. root.testdns.com. (
20081103; serial
120; refresh
14400; retry
3600000; expiry
86400); minimum

IN NS testdns.com.
dns IN A 192.168.0.2
www IN A 192.168.0.2



testdns.com.rev

$TTL 86400
$ORIGIN testdns.com.
@ IN SOA testdns.com. root.testdns.com. (
20081103; serial
120; refresh
14400; retry
3600000; expiry
86400 ); minimum

IN NS testdns.com.
2 IN PTR dns.testdns.com.
2 IN PTR www.testdns.com.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表