关于DNS的配置疑问?

由 wangjunhai 在 07-07-2003 09:06 发表:

关于DNS的配置疑问?

各路高手,小弟我还是linux新手,在看了linux书及论坛中有关DNS配置后决定自己配一下但起不来,敬请指点迷津,万分感谢!

hosts.conf文件内容如下:

127.0.0.1 localhost.localdomain localhost

192.168.1.1 shan shan

192.168.1.2 freeboy.com freeboy

named.conf文件内容如下:

// generated by named-bootconf.pl

options {

directory "/var/named";

/*

  • 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 "freeboy.com" IN {

type master;

file "freeboy.com.conf";

};

zone "1.168.192.in-addr.arpa" IN {

type master;

file "1.168.192.conf"

};

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; };

};

freeboy.com.conf文件内容如下:

freeboy.com @ IN SOA freeboy.com. root.freeboy.com. (

200300701 ; serial (d. adams)

28800 ; refresh

14400 ; retry

3600000 ; expiry

86400 ) ; minimum

IN NS freeboy.com.

www IN A 192.168.1.2

mail IN A 192.168.1.2

linux IN CNAME mail

ftp IN A 192.168.1.2

1.168.192.conf文件内容如下:

freeboy.com @ IN SOA freeboy.com. root.freeboy.com. (

200300701 ; serial (d. adams)

28800 ; refresh

14400 ; retry

3600000 ; expiry

86400 ) ; minimum

IN NS freeboy.com.

192.168.1.2 IN PTR www

192.168.1.2 IN PTR ftp

192.168.1.2 IN PTR mail

192.168.1.2 IN PTR linux


书山有路勤为径,

学海无涯苦作舟。

宝剑锋从磨砺出,

梅花香自苦寒来。

路漫漫其修远兮,

吾将上下而求索。


由 wangjunhai 在 07-07-2003 09:09 发表:


named.local文件内容如下:

freeboy @ IN SOA freeboy.com. root.freeboy.com. (

20030701 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

IN NS freeboy.com.

IN PTR localhost.freeboy.com.

localhost.zone文件内容如下:

freeboy.com @ IN SOA freeboy.com. root.freeboy.com. (

20030701 ; serial (d. adams)

28800 ; refresh

14400 ; retry

3600000 ; expiry

86400 ) ; minimum

IN NS dns.freeboy.com.

IN MX 50 tomus.freeboy.com.

IN PTR localhost.freeboy.com.

resolv.conf文件内容如下:

nameserver 127.0.0.1

nameserver 192.168.1.2

search freeboy.com

还有:我的系统是RedHat7.3 IP:192.168.1.2 最后/etc/rc.d/init.d/named restart后都为failed,请问我这个配置问题出在哪里呀?


书山有路勤为径,

学海无涯苦作舟。

宝剑锋从磨砺出,

梅花香自苦寒来。

路漫漫其修远兮,

吾将上下而求索。


由 Snoopy 在 07-07-2003 11:06 发表:


1.168.192.conf和freeboy.com.conf里没有ttl 86400可以的吗?


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 wangjunhai 在 07-07-2003 13:31 发表:


对啊,本来默认是有的,但我从书上看来是没有的。而且我也试过,加不加无所谓的。


由 Snoopy 在 07-07-2

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