DNS报错无法解析,无法解决(请各位帮忙)
为 什么我的DNS会出现错误,以下是我的配置文件,各位帮忙看一下
named.conf配置文件:
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "jamond.net"{
type master;
file "jamond.net.zone";
};
zone "168.168.192.in-addr.arpa"{
type master;
file "192.168.168.in-addr.zone";
};
include "/etc/rndc.key";
正向解析文件:
$ttl 86400
@ IN SOA ns.jamond.net. root.ns.jamond.net.
(
1053891162
3H
15M
1W
1D)
IN NS ns.jamond.net.
redhat IN A 192.168.168.52
反向解析文件:
$ttl 86400
@ IN SOA ns.jamond.net. root.ns.jamond.net.
(1053892104
1053892104
3H
15M
1W
1D)
52 IN PTR redhat.jamond.net.
配置好后用NSLOOKUP在本机测试时就说找不到 提示server can't find redhat.jamond.net:SERFALL
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
怎么每人回答我的问题啊! 斑主求救!!!!!
贴出你的/var/log/messages的内容。
你自己可以查看启动bind的时候messages有什么提示。
严格注意bind的所有配置文件的格式。注意空格和tab键的使用。
谢谢!
ps -aux |grep named 找到进程的PID,
kill -9 PID
再重启service named start
每次启动都没有报什么错误信息,只是在本机测试的时候,nslookup ,解析不到地址 server can't find redhat.jamond.net:SERFALL