DNS配置出错。** server can't find buildserver: NXDOMAIN
按网上说的配置如下:
(/etc/named.conf)
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
};
zone "." {
type hint;
file "root.hint";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "127.0.0.zone";
allow-update { none; };
};
zone "buildserver" {
type master;
file "buildserver.zone";
allow-update { none; };
};
zone "241.237.137.in-addr.arpa" {
type master;
file "137.237.241.zone";
allow-update { none; };
};
(/etc/resolv.conf)
nameserver 137.237.241.29
(/var/named/137.237.241.zone)
$TTL 86400
@ IN SOA buildserver. root.buildserver. (
1 ; Serial
8H ; Refresh
2H ; Retry
1W ; Expire
1D ; Minumum
)
IN NS buildserver
29 IN PTR buildserver
(/var/named/buildserver.zone)
$TTL 86400
@ IN SOA buildserver. root.buildserver. (
1 ; Serial
8H ; Refresh
2H ; Retry
1W ; Expire
1D ; Minumum
)
IN NS buildserver
buildserver IN A 137.237.241.29
配置之后nslookup buildserver
出现** server can't find buildserver: NXDOMAIN错误。
nslookup 127.0.0.1正常。
哪出问题了?
多谢执教!
------解决方案--------------------编辑你的/etc/resolv.conf 里面加上nameserver 自己的IP
------解决方案--------------------有点难度哦