LinuxSir.cn,穿越时空的Linuxsir!

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

DNS Failed :-(

[复制链接]
发表于 2004-4-2 11:41:50 | 显示全部楼层 |阅读模式
Hi all,

My DNS Server look like don't work, I don't know what is wrong on my setting. And my DNS server is rent by a datacenter pay for HKD 500 each month. And have a publish IP, before it have a hostname called "ad27.001at.com", I changed it by myself to "www.i2iclub.com" by enter this command by root "vi /etc/sysconfig/network" change the HOSTNAME's value and then enter "hostname www.i2iclub.com" then haven't reboot.

Later I change the setting show below


/etc/named.conf

zone "i2iclub.com" IN {
type master;
file "db.i2iclub.com";
};

zone "166.245.210.in-addr.arpa" IN {
type master;
file "db.166.245.210";
};



-------------------------------------------------------------------------------
/var/named/db.i2iclub.com

$TTL 86400
;
; The i2iclub.com domain database
;
@ IN SOA ns1.i2iclub.com. root.www.i2iclub.com. (
2004033002 ; Serial number
300 ; Refresh (300 seconds = 5 minutes)
60 ; Retry (60 seconds = 1 minutes)
1209600 ; Expiration (1209600 seconds = 2 weeks)
43200 ) ; Minimum time to live (43200 seconds = 12 hours)
;
; Define the nameservers
;
i2iclub.com. IN NS ns1.i2iclub.com.
;
; Define the hosts in this zone
;
ns1.i2iclub.com. IN A 210.245.166.72
www IN A 210.245.166.72
;
; Define the CNAME in this zone
ns1 CNAME www.i2iclub.com.
mail CNAME www.i2iclub.com.
ftp CNAME www.i2iclub.com.



-----------------------------------------------------------------------------------
/var/named/db.166.245.210

; Address to host name mappings.
;
$ TTL 1d
@ IN SOA ns1.i2iclub.com. admin.www.i2iclub.com. (
2004033002 ; Serial
21600 ; Refresh
1800 ; Retry
604800 ; Expire
900 ) ; Negative cache TTL
;
; Define the nameserver
;
IN NS ns1.i2iclub.com.
;
; Define the PTR
;
72.166.245.210.in-addr.arpa. IN PTR www.i2iclub.com.



-----------------------------------------------------------------------------------
[root@www named]# less /var/log/messages

Apr 2 11:08:47 ad72 named[31808]: exiting
Apr 2 11:08:47 ad72 named: named shutdown failed
Apr 2 11:08:47 ad72 named[31976]: starting BIND 9.2.1 -u named
Apr 2 11:08:47 ad72 named[31976]: using 1 CPU
Apr 2 11:08:47 ad72 named: named startup succeeded
Apr 2 11:08:47 ad72 named[31978]: loading configuration from '/etc/named.conf'
Apr 2 11:08:47 ad72 named[31978]: no IPv6 interfaces found
Apr 2 11:08:47 ad72 named[31978]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 2 11:08:47 ad72 named[31978]: listening on IPv4 interface eth0, 210.245.166
.72#53
Apr 2 11:08:47 ad72 named[31978]: command channel listening on 127.0.0.1#953
Apr 2 11:08:47 ad72 named[31978]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1
997022700
Apr 2 11:08:47 ad72 named[31978]: dns_master_load: db.166.245.210:3: unknown $
directive '$'
Apr 2 11:08:47 ad72 named[31978]: zone 166.245.210.in-addr.arpa/IN: loading mas
ter file db.166.245.210: syntax error
Apr 2 11:08:47 ad72 named[31978]: dns_master_load: db.i2iclub.com:23: ns1.i2icl
ub.com: CNAME and other data
Apr 2 11:08:47 ad72 named[31978]: zone i2iclub.com/IN: loading master file db.i
2iclub.com: CNAME and other data
Apr 2 11:08:47 ad72 named[31978]: zone localhost/IN: loaded serial 42
Apr 2 11:08:47 ad72 named[31978]: running

My problems is if I enter nslookup in WinXP, and then enter www.i2iclub.com, it can't resolve the hostname, enter IP also same, but if I enter nslookup, later enter server 210.245.166.72, change the default DNS server from my ISP to myself's DNS server, can resolve the hostname www.i2iclub.com, but can't resolve the from enter a IP, the error show up in the messages log "dns_master_load: db.166.245.210:3: unknown $
directive '$'
Apr 2 11:08:47 ad72 named[31978]: zone 166.245.210.in-addr.arpa/IN: loading master file db.166.245.210: syntax error"

I don't know what is it mean of what is wrong on my setting. and I also go to www.alldomains.com and login to postition the DNS server to ns1.i2iclub.com, added the www, ns1, ns2 record to the registry in alldomains. And wait for one day more, nslookup still not working, anyone can help me?? Thx
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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