求助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 "ll.com" IN {
type master;
file "named.ll.com";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "named.ip";
};
include "/etc/rndc.key";
named.ll.com 文件如下:
$TTL 86400
@ IN SOA named.ll.com. root.named.ll.com. (
20030816
28800
7200
360000
86500 )
IN NS named.ll.com.
IN MX 10 named.ll.com.
localhost IN A 127.0.0.1
named.ll.com IN A 192.168.0.1
hhh IN A 192.168.0.4
www IN CNAME 192.168.0.9
named.ip 文件如下:
$TTL 86400
@ IN SOA 0.168.192.in-addr.arpa. root.named.ll.com. (
2005910
28800
7200
360000
84600 )
IN NS named.ll.com.
IN MX 10 named.ll.com.
1 IN PTR named.ll.com.
22 IN PTR bb.com.
named.local 文件如下:
$TTL 86400
@ IN SOA 0.168.192.in-addr.arpa. root.named.ll.com. (
2005910
28800
7200
360000
84600 )
IN NS named.ll.com.
IN MX 10 named.ll.com.
1 IN PTR named.ll.com.
22 IN PTR bb.com.
lovalhost.zone 文件如下:
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1
messages 文件如下:
; Sep 19 19:27:22 localhost syslogd 1.4.1: restart.
Sep 19 19:38:48 localhost vsftpd: warning: can't get client address: Bad file descriptor
Sep 19 19:38:55 localhost 9月 19 19:38:55 vsftpd: vsftpd shutdown succeeded
Sep 19 19:38:55 localhost 9月 19 19:38:55 vsftpd: true startup succeeded
Sep 19 19:39:10 localhost vsftpd: warning: can't get client address: Bad file descriptor
Sep 19 19:51:46 localhost named[4757]: starting BIND 9.2.1 -u named
Sep 19 19:51:46 localhost named[4757]: using 1 CPU
Sep 19 19:51:46 localhost 9月 19 19:51:46 named: named startup succeeded
Sep 19 19:51:46 localhost named[4757]: loading configuration from '/etc/named.conf'
Sep 19 19:51:46 localhost named[4757]: no IPv6 interfaces found
Sep 19 19:51:46 localhost named[4757]: listening on IPv4 interface lo, 127.0.0.1#53
Sep 19 19:51:46 localhost named[4757]: listening on IPv4 interface eth0, 192.168.0.1#53
Sep 19 19:51:46 localhost named[4757]: command channel listening on 127.0.0.1#953
Sep 19 19:51:46 localhost named[4757]: zone 10.10.10.in-addr.arpa/IN: loading master file name.10.10.10: file not found
Sep 19 19:51:46 localhost named[4757]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Sep 19 19:51:46 localhost named[4757]: zone 0.168.192.in-addr.arpa/IN: loaded serial 2005910
Sep 19 19:51:46 localhost named[4757]: zone ll.com/IN: loaded serial 20030816
Sep 19 19:51:46 localhost named[4757]: zone localhost/IN: loaded serial 42
Sep 19 19:51:46 localhost named[4757]: zone wangdapeng/IN: loading master file named.wang: file not found
Sep 19 19:51:46 localhost named[4757]: running
Sep 19 19:51:46 localhost named[4757]: zone 0.168.192.in-addr.arpa/IN: sending notifies (serial 2005910)
Sep 19 20:01:57 localhost vsftpd: warning: can't get client address: Bad file descriptor
Sep 19 20:05:04 localhost vsftpd: warning: can't get client address: Bad file descriptor
Sep 19 20:11:45 localhost vsftpd: warning: can't get client address: Bad file descriptor
高手要是有空的话就帮个忙吧,本人要没信心了。
谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
好象你有几个文件没放对地方或是没有吧?
请问是哪几个文件呀,明说好吗??
谢谢!!~~~~
后来我把这二行给删了。zone "wangdapeng" IN {
type master;
file "named.wang";
};
zone "10.10.10.in-addr.arpa" IN {
type master;
file "name.10.10.10";
};
删了还不行?
不行,我感觉是我家的机器有毛病,你说有可能性吗??
看起来没问题呀.
你说说怎么个不行法?
在我自己那台机子上不管是用host或是nslookup都不行,就是不对呀
[quote]原帖由 "西装笔挺"]在我自己那台机子上不管是用host或是nslookup都不行,就是不对呀[/quote 发表:
cat /etc/resolv.conf 看看.
还有 /etc/nsswitch.conf