option {
directory "var/named";
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type master;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.db";
};
zone "myxfc.com" IN {
type master;
file "myxfc.com.db";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "0.0.127.db";
};
zone "72.190.10.in-addr.arpa" IN {
type master;
file "72.190.10.db";
};
include "/etc/named.custom";
include "/etc/rndc.key";
--------------------------------------------------
rndc.conf文件内容
1 IN PTR localhost.
--------------------------------------------------
72.190.10.db的内容
$TTL 86400
@ IN SOA ns.myxfc.com. root.ns.myxfc.com. (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS ns.myxfc.com.
@ IN MX 10 mail.myxfc.com.
202 IN PTR mail.myxfc.com.
202 IN PTR ns.myxfc.com.
202 IN PTR www.myxfc.com.
---------------------------------------------------
localhost.db的内容
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
localhost IN A 127.0.0.1
---------------------------------------------------
myxfc.com.db文件的内容
$TTL 86400
@ IN SOA ns.myxfc.com. root.ns.myxfc.com. (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS ns.myxfc.com.
@ IN MX 10 mail.myxfc.com.
mail IN A 10.190.72.202
ns IN A 10.190.72.202
www IN A 10.190.72.202
------------------------------------------------------
以上配置完成之后
#service named restart
停止 named:rndc: Couldn't find server 'localhost': Name or service not known
[失败]
[root@xinfc etc]# [ 确定 ]
#ntsysv
named前已经有*号
关闭计算机的时候,会发现有关named服务都不能关闭
[root@xinfc etc]# rndc reload
rndc: Couldn't find server 'localhost': Name or service not known
------------------------------------------------------
resolv.conf文件内容
search ns.myxfc.com.
nameserver 10.190.72.202
nameserver ns.gxth.com.
一定要救救我啊,我是很认真的啊,帮帮我,为什么会这样讷?