菜鸟求助,关于DNS。

由 agonalight 在 03-21-2003 13:07 发表:

菜鸟求助,关于DNS。

配置DNS后,在WIN98的计算机上ping不到主机名,请各位帮我看一看。多谢!

//named.conf

// generated by named-bootconf.pl

options {

directory "/var/named";

// query-source address * port 53;

};

zone "." IN {

type hint;

file "named.ca";

};

zone "agon.com" IN {

type master;

file "named.hosts";

};

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

type master;

file "named.168.192";

};

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

type master;

file "named.local";

};

// include "/etc/rndc.key";

//named.hosts

@ IN SOA ns.agon.com. root.ns.agon.com. (

1997022700 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

IN NS ns.agon.com

agon IN A 192.168.0.250

业务室 IN A 192.168.0.51

技服 IN A 192.168.0.52

jjs IN A 192.168.0.1

ftp IN CNAME agon

agon1 IN CNAME 业务室

jf IN CNAME 技服

//named.168.192

@ IN SOA ns.agon.com. root.ns.agon.com. (

1997022700 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

IN NS ns.agon.com

250 IN NS ns.agon.com

//named.local

$TTL 86400

@ IN SOA ns.agon.com. root.ns.agon.com. (

1997022700 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

IN NS ns.agon.com

250 IN PTR localhost.

另外,在WIN98中如何设置?


由 dsj 在 03-21-2003 14:40 发表:


先在linux下

1.把域名和对应IP放到/etc/hosts

2.把域名和DNS地址放到/etc/resolv.conf,如

search xxx.com

nameserver xxx.xxx.xxx.xxx

__________________<br

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