请教 LINUX DNS 问题。
os: redhat as 3
ip:192.168.168.11
按照网上的文档配置了相关文件,但是还是报错,说server can't find
还请各位大虾指点一下
1. /etc/resolv.conf
domain silk.com
search silk.com
nameserver 192.168.168.11
2. /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.168.11 www.silk.com www
3./etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and
* to talk to, you might need to uncomment
* directive below. Previous versions of
* questions using port 53, but BIND 8.1 u
* port by default.
*/
// query-source address * port 53;
};
//
//a PM nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "silk.com" {
type master;
file "named.silk.com.orig";
allow-update { none; };
};
zone "168.168.192.in-addr.arpa" {
type master;
file "named.192.168.168";
allow-update { none; };
};
include "/etc/rndc.key";
4./var/named/named.local
@ IN SOA ns.silk.com. root.ns.silk.com. (
2005081700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.silk.com.
1 IN PTR localhost.
~
5./var/named/named.silk.com.orig
@ IN SOA ns.silk.com. root.ns.silk.com. (
2005081700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.silk.com.
www A 192.168.168.11
ftp CNAME www.silk.com.
~
6. /var/named/named.192.168.168
@ IN SOA ns.silk.com. root.ns.silk.com. (
2005081700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.silk.com.
1 IN PTR www.silk.com.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论