BloodWorld 发表于 2005-8-7 16:10:20

DNS服务器问题

本人是在局域网环境下做解析的,域名为www.IT.commail.IT.comIP地址同为192.168.0.2,系统为Redhat AS 4.0
/etc/named.conf(内容):

//
// named.conf for Red Hat caching-nameserver
//

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
       statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below.Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "0.168.192.in-addr.arpa" IN {
type master;
file "named.192.168.0.2";
allow-update { none; };
};

zone "IT.com" IN {
type master;
file "/var/named/named.IT";
allow-update { none; };
};
include "/etc/rndc.key";

/var/named/named.192.168.0.2(内容):

  $TTL 86400
  @ IN SOA   IT.com.      root.IT.com. (
                                    83            ; serial (d. adams)
                                       3H            ; refresh
                                       15M             ; retry
                                       1W            ; expiry
                                       1D )            ; minimum
     IN    NS    www.IT.com
   IN    MX   10    mail.IT.com
 2 IN PTR www.IT.com
2 IN PTR mail.IT.com

/var/named/named.IT(内容):

  $TTL 86400
  @ IN SOA   IT.com.         root.IT.com. (
                                    83            ; serial (d. adams)
                                       3H            ; refresh
                                       15M             ; retry
                                       1W            ; expiry
                                       1D )            ; minimum
                IN      NS   www.IT.com
                IN      MX   10mail.IT.com
   www IN A 192.168.0.2
 mail IN A 192.168.0.2

tail -20 /var/log/messages:
Aug7 15:01:59 IT named: no longer listening on 192.168.0.1#53
Aug7 15:01:59 IT named: exiting
Aug7 15:01:59 IT named:succeeded
Aug7 15:02:01 IT named: starting BIND 9.2.4 -u named -t /var/named/chroot
Aug7 15:02:01 IT named: using 1 CPU
Aug7 15:02:01 IT named: named 启动 succeeded
Aug7 15:02:01 IT named: loading configuration from '/etc/named.conf'
Aug7 15:02:01 IT named: listening on IPv4 interface lo, 127.0.0.1#53
Aug7 15:02:01 IT named: listening on IPv4 interface eth0, 192.168.0.1#53
Aug7 15:02:01 IT named: command channel listening on 127.0.0.1#953
Aug7 15:02:01 IT named: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Aug7 15:02:01 IT named: dns_master_load: named.192.168.0.2:2: unexpected end of line
Aug7 15:02:01 IT named: dns_master_load: named.192.168.0.2:1: unexpected end of input
Aug7 15:02:01 IT named: zone 0.168.192.in-addr.arpa/IN: loading master file named.192.168.0.2: unexpected end of input
Aug7 15:02:01 IT named: dns_master_load: /var/named/named.IT:2: unexpected end of line
Aug7 15:02:01 IT named: dns_master_load: /var/named/named.IT:1: unexpected end of input
Aug7 15:02:01 IT named: zone IT.com/IN: loading master file /var/named/named.IT: unexpected end of input
Aug7 15:02:01 IT named: zone localdomain/IN: loaded serial 42
Aug7 15:02:01 IT named: zone localhost/IN: loaded serial 42
Aug7 15:02:01 IT named: running

linky_fan 发表于 2005-8-7 22:22:30


named.192.168.0.2:2: unexpected end of line


named.192.168.0.2:1: unexpected end of input


/var/named/named.IT:2


var/named/named.IT:1: unexpected end of input


/var/named/named.IT

这些个文件再看看, 有错的说(log说的)
页: [1]
查看完整版本: DNS服务器问题