DNS Failed :-(

由 explorer1979 在 04-02-2004 11:41 发表:

DNS Failed :-(

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<

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus