我的DNS的问题!

由 seanet 在 02-18-2003 21:11 发表:

我的DNS的问题!

我的DNS的问题!

named.conf的配置文件:

options {

directory "/var/named";

};

//

// a caching only nameserver config

//

controls{

inet 127.0.0.1 allow{

localhost;

} keys{

rndckey;

};

};

key "rndckey"{

algorithm hmac-md5;

secret "XKMxppFnfjMB0jroCOLnnqBbGKMdWpoiOhJE0TMNprNtTSogvhLsLNE0LyaQ";

};

zone "." {

type hint;

file "named.ca";

};

zone "localhost" in{

type master;

file "localhost.zone";

allow-update{

none;

};

};

zone "51flight.com" in{

type master;

file "51flight.com.zone";

};

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 "0.168.192.in-addr.arpa.zone";

};

~

~

~

~

51flight.com.zone的配置文件:

$TTL 86400

@ IN SOA @ root.localhost. (

2003021701 ; serial

8H ; refresh

2H ; retry

7D ; expire

1D ; default_ttl

)

www IN A 192.168.0.1

niit IN A 192.168.0.1

mail IN A 192.168.0.1

@ IN MX 5 mail.51flight.com.

@ IN NS 192.168.0.1.

~

0.168.192.in-addr.arpa.zone的配置文件:

$TTL 86400

@ IN SOA @ root.localhost. (

2003021701 ; serial

8H ; refresh

2H ; retry

7D ; expire

1D ; default_ttl

)

1 IN PTR www.51flight.com.

@ IN NS 192.168.0.1.

~

执行/etc/rc.d/init.d/named start的结果:

[root@server named]# tail -f /var/log/messages

Feb 17 23:06:06 server named[2081]: listening on IPv4 interface eth0:0, 192.168.0.1#53

Feb 17 23:06:04 server named[2081]: command channel listening on 127.0.0.1#953

Feb 17 23:06:04 server named[2081]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700

Feb 17 23:06:06 server named[2081]: zone 0.168.192.IN-ADDR.ARPA/IN: loaded serial 2003021701

Feb 17 23:06:06 server named[2081]: zone 51flight.com/IN: loaded serial 2003021701

Feb 17 23:06:06 server named[2081]: zone localhost/IN: loaded serial 42

Feb 17 23:06:06 server named[2081]: running

Feb 17 23:06:08 server 2月

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