免费注册 查看新帖 |

Chinaunix

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

大家帮忙看下DNS服务器启动不了的messages的信息 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-26 12:23 |只看该作者 |倒序浏览
主机test   IP 192.168.168.121


Jan 26 11:55:10 test named[1644]: [ID 295310 daemon.notice] named.local:1: Database error (192.168.168.121)

Jan 26 11:55:10 test named[1644]: [ID 295310 daemon.notice] named.local:9: SOA ")" error (I)  # 这个是说我“)”的位置写错了么?

Jan 26 11:55:10 test named[1644]: [ID 295310 daemon.warning] 168.168.192.in-addr.arpa IN PTR differing ttls: corrected


Jan 26 11:55:10 test named[1644]: [ID 295310 daemon.warning] Zone "0.0.127.in\032-\032addr.arpa" (file named.local): no SOA RR found

Jan 26 11:55:10 test named[1644]: [ID 295310 daemon.warning] master zone "0.0.127.in\032-\032addr.arpa" (IN) rejected due to errors (serial 1997022700) #是偶抄的精华帖子的一句话啊

Jan 26 11:55:10 test named[1644]: [ID 295310 daemon.warning]  named.hosts: No such file or directory #他怎么能找不到呢,偶确实建在/var/named下面了啊

论坛徽章:
0
2 [报告]
发表于 2007-01-26 17:58 |只看该作者
up~~~我的BIND版本是8.1.2

斑竹大人及高手们如果懒的理偶会严重打击偶学习的积极性啊~~
Brian同志在线不啊?也许大概或者还没起床吧~~~

[ 本帖最后由 满天飞小猪 于 2007-1-26 19:03 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2007-01-26 20:00 |只看该作者
下面贴些偶找到的解释,8过,偶还是8知道该怎么改~~

(一)   168.168.192.in-addr.arpa IN PTR differing ttls: corrected
解释:
161.79.81.194.in-addr.arpa IN PTR differing ttls: corrected
CATEGORY: db
SEVERITY: warning
PAGE:
FURTHER INFO:

Indicates that the name server loaded multiple PTR records for the domain name 161.79.81.194.in-addr.arpa, but that these had different TTLs. Since all of the records in an RRset must have the same TTL, the name server corrected the TTLs for the RRset (by setting them to the smallest TTL of the records in the RRset).

我查过了TTLs,就是这句吧  86400;defaul_ttl   没有什么different TTLs啊~

论坛徽章:
0
4 [报告]
发表于 2007-01-26 20:08 |只看该作者
Jan 26 11:55:10 test named[1644]: [ID 295310 daemon.warning]  named.hosts: No such file or directory
解释
can't change directory to /var/name: No such file or directory
CATEGORY:
SEVERITY:
PAGE: 312-313
FURTHER INFO:

Indicates that the working directory you set in named.conf doesn't exist
---------
我看过了,我的是solaris8自带的BIND8.1.2版本,没有自己重新装过~ zone的文件不是建立在/var/named/下面么?

论坛徽章:
0
5 [报告]
发表于 2007-01-27 01:39 |只看该作者
First of all, BIND 8.1.2 is really oooooooooold. If you seriously want to run BIND , you should upgrade. That said, let's try to figure out your problems. 99% of error for a simple DNS server is from syntax error or type error. So try the following files carefully and give it a shot.

/etc/named.conf
  1. options {
  2.         directory       "/var/named";
  3. };
  4. zone  "."  in {
  5.         type hint;
  6.         file "named.ca";
  7. };
  8. zone  "abc.cn"  in {
  9.         type master;
  10.         file  "named.hosts";
  11. };
  12. zone  "168.168.192.in-addr.arpa"  in {
  13.         type master;
  14.         file "named.rev";
  15. };
  16. zone  "0.0.127.in-addr.arpa"  in {
  17.         type master;
  18.         file "named.local";
  19. };
复制代码


Backup and delete everything in /var/named directory

In /var/named directory

named.ca

  1. .                      99999999        IN      NS      test.abc.cn.                  
  2. test.abc.cn.     99999999        IN     A       192.168.168.121
复制代码


named.hosts

  1. ;  
  2. ;                   Host to address mapping for abc.cn
  3. ;     
  4.      @               IN      SOA    test.abc.cn. root.abc.cn. (
  5.                              1       ; serial number
  6.                              10800   ; refresh after 3 hours
  7.                             3600    ; retry after 1 hour
  8.                             604800  ; expire after 1 week
  9.                             86400 ) ; minimum TTL of 1 day
  10.                      IN   NS         test.abc.cn.
  11.      test.abc.cn.      IN A          192.168.168.121
  12.      mail.abc.cn.      IN A          192.168.168.122
复制代码


named.rev

  1. ;  
  2. ;                   Host to address mapping for abc.cn
  3. ;     
  4.      @               IN      SOA    test.abc.cn. root.abc.cn. (
  5.                              1       ; serial number
  6.                              10800   ; refresh after 3 hours
  7.                             3600    ; retry after 1 hour
  8.                             604800  ; expire after 1 week
  9.                             86400 ) ; minimum TTL of 1 day
  10.                         IN   NS         test.abc.cn.
  11.    121               IN   PTR        test.abc.cn.
  12.    122               IN   PTR        mail.abc.cn.

  13. test.abc.cn.     IN    A          192.168.168.121
复制代码


named.local

  1. ;  
  2. ;                   Host to address mapping for abc.cn
  3. ;     
  4.      @               IN      SOA    test.abc.cn. root.abc.cn. (
  5.                              1       ; serial number
  6.                              10800   ; refresh after 3 hours
  7.                             3600    ; retry after 1 hour
  8.                             604800  ; expire after 1 week
  9.                             86400 ) ; minimum TTL of 1 day
  10.                             IN      NS      test.abc.cn.
  11.       1                    IN      PTR     localhost.
  12.       test.abc.cn.    IN      A       192.168.168.121
复制代码


Edit /etc/nsswitch file so that
  1. hosts:  files dns
复制代码


Edit /etc/resolv.conf file as

  1. domain abc.cn
  2. nameserver 192.168.168.121
复制代码


To be absolutely clean, reboot your server.
ifconfig -a and make sure your ip is 192.168.168.121
ps -ef|grep named  to make sure the process is running
netstat -na|grep LISTEN|grep 53  and make sure port 53 is listening. You can also check the boot log for details
nslookup test

[ 本帖最后由 briangao 于 2007-1-26 12:52 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2007-01-27 03:40 |只看该作者
先回了帖子再看,感谢, 不枉费我特意上闹表半夜起来看~
T_T  谢谢,谢谢~~~~


[ 本帖最后由 满天飞小猪 于 2007-1-27 03:53 编辑 ]

em012.gif (3.57 KB, 下载次数: 32)

我要努力!

我要努力!

论坛徽章:
0
7 [报告]
发表于 2007-01-28 03:22 |只看该作者
I had an error in my initial post. For the SOA line in all zone files, please change it from test.abc.cn to abc.cn and your problem should go away. I must be very sleepy at the time. As I said, 99% of the problem for simple DNS server was from syntax or type error, me included.

  1.      @               IN      SOA    abc.cn. root.abc.cn. (
  2.                              1       ; serial number
  3.                              10800   ; refresh after 3 hours
  4.                             3600    ; retry after 1 hour
  5.                             604800  ; expire after 1 week
  6.                             86400 ) ; minimum TTL of 1 day
  7.                      IN   NS         test.abc.cn.
  8.      test.abc.cn.      IN A          192.168.168.121
  9.      mail.abc.cn.      IN A          192.168.168.122
复制代码

...

[ 本帖最后由 briangao 于 2007-1-27 14:40 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2007-01-29 10:28 |只看该作者
拷贝一份named.local中的信息。messages的报警不用去管他。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP