免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234下一页
最近访问板块 发新帖
查看: 5332 | 回复: 32
打印 上一主题 下一主题

[DNS] DNS配置不成功,实在找不出原因阿!文件已经贴出来了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-30 02:33 |只看该作者 |倒序浏览
已经重起了named了
/var/log/messages:
Mar 30 02:22:35 xiaofam  3Ô 30 02:22:35 named: named Æô¶¯ succeeded
Mar 30 02:22:35 xiaofam named[2810]: no IPv6 interfaces found
Mar 30 02:22:35 xiaofam named[2810]: listening on IPv4 interface lo, 127.0.0.1#53
Mar 30 02:22:35 xiaofam named[2810]: listening on IPv4 interface eth0, 192.168.10.9#53
Mar 30 02:22:35 xiaofam named[2810]: command channel listening on 127.0.0.1#953
Mar 30 02:22:35 xiaofam named[2810]: zone 10.168.192.in-addr.arpa/IN: loaded serial 2001111601
Mar 30 02:22:35 xiaofam named[2810]: zone xiaofam.net/IN: loaded serial 2001111601
Mar 30 02:22:35 xiaofam named[2810]: running

..........................................................................................................................................................................
/etc/named.conf

controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

include "/etc/named.custom";

include "/etc/rndc.key";

zone "xiaofam.net" IN {
        type master;
        file "xiaofam.net";
};

zone "10.168.192.in-addr.arpa" IN {
        type master;
        file "192.168.10";
};
......................................................................................................................
/var/named/xiaofam.net

$TTL    86400
$ORIGIN xiaofam.net.
@ IN  SOA  lf.xiaofam.net. root.lf.xiaofam.net. (
        2001111601 28800 14400 3600000 86400 )
        IN  NS     lf.xiaofam.net.

        IN  MX  10 lf.xiaofam.net.

;; -- default address
@       IN  A      192.168.10.9

;; -- linux servers --
lf    IN  A      192.168.10.9
        IN  MX  10  lf.xiaofam.net.


;; -- cnames --
gw      IN  CNAME  lf
www     IN  CNAME  lf
ftp     IN  CNAME  lf
mail    IN  CNAME  lf

................................................................................................................
/var/named/192.168.10
$TTL    86400
@  IN  SOA lf.xiaofam.net. root.lf.xiaofam.net. (
                                      2001111601 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
@   IN  NS  lf.xiaofam.net.

9  IN  PTR lf.xiaofam.net.
.................................................................................................................

# nslookup 192.168.10.9
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         61.144.56.100
Address:        61.144.56.100#53

** server can't find 9.10.168.192.in-addr.arpa: NXDOMAIN
...........................................................................................................
[root@xiaofam root]# nslookup lf.xiaofam.net
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         61.144.56.100
Address:        61.144.56.100#53

** server can't find lf.xiaofam.net: NXDOMAIN

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2006-03-30 02:51 |只看该作者
下面結果如何?
cat /etc/resolv.conf

论坛徽章:
0
3 [报告]
发表于 2006-03-30 10:38 |只看该作者
你最好用dig lf.xiaofam.net +trace看下查不查的到?并且像netman说的你的resolv.conf里的ns是你自己还是公网的dns?

论坛徽章:
0
4 [报告]
发表于 2006-03-30 10:46 |只看该作者
我的bind启动后也有问题,使用nslookup就会提示你这个Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.

什么都不出了就!
但是使用dig www.sohu.com +trace就可以查询出来,奇怪中啊~~~
还请各位老大帮我说下这个原因是怎么造成的?

论坛徽章:
0
5 [报告]
发表于 2006-03-30 10:58 |只看该作者
这个是正常的,因为 nslookup 在 BIND 9 就已经是过时的工具,推荐使用

dig ,这段话是告诉你如何不现实上面的信息

论坛徽章:
0
6 [报告]
发表于 2006-03-30 11:07 |只看该作者
哈哈,知道了,我说的呢,谢谢老大给我翻译啊。
用了一天的时间才装好bind,但是还是不能给别的pc做dns服务器,不知道为啥?
我已经设置了递归啊,还用设置转发器吗?在options里用加转发选项吗?

论坛徽章:
0
7 [报告]
发表于 2006-03-30 11:16 |只看该作者
如何不行?有日志或者具体的过程吗?

论坛徽章:
0
8 [报告]
发表于 2006-03-30 11:30 |只看该作者
你不是已经能够查到sohu了吗?

检查你的客户机配置和你的 resolv.conf 的配置,包括你的防火墙配置

论坛徽章:
0
9 [报告]
发表于 2006-03-30 11:50 |只看该作者
就是如果你使用我的dns,你能解析别的域名吗?我在本机上resolv.conf里的ns指一个公网的ns,完了使用dig @我建立的dns地址 www.sina.com.cn +trace可以解析到sina的地址,但是我同事的机器使用我的dns就解析不到sina的地址,怎么回事?

论坛徽章:
0
10 [报告]
发表于 2006-03-30 13:11 |只看该作者
# dig lf.xiaofam.net +trace

; <<>> DiG 9.2.1 <<>> lf.xiaofam.net +trace
;; global options:  printcmd
.                       139580  IN      NS      C.ROOT-SERVERS.NET.
.                       139580  IN      NS      D.ROOT-SERVERS.NET.
.                       139580  IN      NS      E.ROOT-SERVERS.NET.
.                       139580  IN      NS      F.ROOT-SERVERS.NET.
.                       139580  IN      NS      G.ROOT-SERVERS.NET.
.                       139580  IN      NS      H.ROOT-SERVERS.NET.
.                       139580  IN      NS      I.ROOT-SERVERS.NET.
.                       139580  IN      NS      J.ROOT-SERVERS.NET.
.                       139580  IN      NS      K.ROOT-SERVERS.NET.
.                       139580  IN      NS      L.ROOT-SERVERS.NET.
.                       139580  IN      NS      M.ROOT-SERVERS.NET.
.                       139580  IN      NS      A.ROOT-SERVERS.NET.
.                       139580  IN      NS      B.ROOT-SERVERS.NET.
;; Received 436 bytes from 61.144.56.100#53(61.144.56.100) in 76 ms

net.                    172800  IN      NS      A.GTLD-SERVERS.net.
net.                    172800  IN      NS      B.GTLD-SERVERS.net.
net.                    172800  IN      NS      C.GTLD-SERVERS.net.
net.                    172800  IN      NS      D.GTLD-SERVERS.net.
net.                    172800  IN      NS      E.GTLD-SERVERS.net.
net.                    172800  IN      NS      F.GTLD-SERVERS.net.
net.                    172800  IN      NS      G.GTLD-SERVERS.net.
net.                    172800  IN      NS      H.GTLD-SERVERS.net.
net.                    172800  IN      NS      I.GTLD-SERVERS.net.
net.                    172800  IN      NS      J.GTLD-SERVERS.net.
net.                    172800  IN      NS      K.GTLD-SERVERS.net.
net.                    172800  IN      NS      L.GTLD-SERVERS.net.
net.                    172800  IN      NS      M.GTLD-SERVERS.net.
;; Received 489 bytes from 192.33.4.12#53(C.ROOT-SERVERS.NET) in 334 ms

net.                    172800  IN      SOA     a.gtld-servers.net. nstld.verisign-grs.com. 1143694639 1800 900 604800 900
;; Received 105 bytes from 192.5.6.30#53(A.GTLD-SERVERS.net) in 402 ms
//........................................怎么变成了192.15.6.30????..可以解释一下上面的吗?...............
/erc/resolv.conf
; generated by /sbin/dhclient-script
search xiaofam.net
nameserver 61.144.56.100
nameserver 61.144.56.101
//.......是不是要加上自己的ip??????.......
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP