LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 932|回复: 9

高手请看:我的DNS配置文件错在什么地方了?

[复制链接]
发表于 2005-12-29 13:18:15 | 显示全部楼层 |阅读模式
dns配置文件的错误?
        @        IN        SOA        linux.domain.com.        root.domain.com. (
                                20051228000
                                28800
                                14400
                                36000000
                                86400 )
        @        IN        NS        linux
        www        IN        A        172.16.0.6
    问:如果把20051228000 改为2005122800(少了一个零),那么DNS就能正常解析域名,如果多一个零,那么就不能正常解析,请问是为什么?
发表于 2005-12-29 17:36:53 | 显示全部楼层
$ttl 38400
@        IN        SOA        loveronin.linux.com  root.loveronin.linux.com. (
                        1131711699
                        28800
                        14400
                        36000000
                        86400 )
         IN        NS        loveronin.linux.com.
       IN        MX    5  loveronin.linux.com.
loveronin       IN      A        192.168.1.7
www             IN   CNAME   loveronin.linux.com.

这是我的,你的是不是少了一行,你说的那个是序列号,应该没有什么关系吧
回复 支持 反对

使用道具 举报

发表于 2005-12-30 08:35:35 | 显示全部楼层
就是多一个零的问题
回复 支持 反对

使用道具 举报

发表于 2005-12-30 09:42:58 | 显示全部楼层
请问这是为什么?
回复 支持 反对

使用道具 举报

发表于 2005-12-30 23:07:07 | 显示全部楼层
年 xxxx
月 xx
日 xx
更改次数 xx
每x一位 更改次数<100
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-30 23:07:12 | 显示全部楼层

这个我也知道!请问是为什么?

Post by dujihong
就是多一个零的问题

这是序列号是10时就好用,是11位时就不好用,请问这个序列号有长度的限制吗?
再有就是每一位有自己的含义吗?
回复 支持 反对

使用道具 举报

发表于 2005-12-30 23:31:14 | 显示全部楼层
Serial:其格式通常会是“年月日+修改次序”(但也不一定如此,您自己能够记得就行)。当 slave 要进行资料同步的时候,会比较这个号码。如果发现在这里的号码比它那边的数值“大”,就进行更新,否则忽略。不过设 serial 有一个地方您要留意:不能超过 10 位数字!
Refresh:这里是是告诉 slave 要隔多久要进行资料同步(是否同步要看 Serial 的比较结果)。
Retry:如果 slave 在进行更新失败后,要隔多久再进行重试。
Expire:这是记录逾期时间:当 slave 一直未能成功与 master 取得联系,那到这里就放弃 retry,同时这里的资料也将标识为过期( expired )。
Minimum:这是最小默认 TTL 值,如果您在前面没有用“$TTL”来定义,就会以此值为准。
回复 支持 反对

使用道具 举报

发表于 2005-12-30 23:36:15 | 显示全部楼层
There are several good ways to manage integer serial numbers. The most obvious is just to use a counter: increment the serial number by one each time you modify the file. Another method is to derive the serial number from the date. For example, you could use the eight-digit number formed by YYYYMMDD. Suppose today is January 15, 1997. In this form, your serial number would be 19970115. This scheme allows only one update per day, though, and that may not be enough. Add another two digits to this number to indicate how many times the file has been updated that day. The first number for January 15, 1997 would then be 1997011500. The next modification that day would change the serial number to 1997011501. This scheme allows 100 updates per day. It also has the advantage of leaving you an indication in the zone data file of when you last incremented the serial number. h2n will generate the serial number from the date if you use the -y option. Whatever scheme you choose, the serial number must fit in a 32-bit integer.
回复 支持 反对

使用道具 举报

发表于 2005-12-31 12:22:02 | 显示全部楼层
Post by Recoilest
年 xxxx
月 xx
日 xx
更改次数 xx
每x一位 更改次数<100

这个只是人为规定的格式,序列号是32bit的无符号整数
你直接写1也可以,但是完全不方便人阅读而已
回复 支持 反对

使用道具 举报

发表于 2005-12-31 12:23:32 | 显示全部楼层
name -c /etc/named.conf -d 5
然后看syslog
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表