红联Linux门户
Linux帮助

请大家帮我看看 我的DNS配置哪里错了....起不来

发布时间:2006-04-22 20:32:36来源:红联作者:plinlove
我想做写实验 把我的电脑配成 DNS 服务器 IP是 192.168.0.155. 把域名 设置成 test.com
我照着网上的做的 怎么都做不好.....请帮我看看.......我的是 redhat 9.0 自己带的 bind

----------------这是 /etc/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 "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 "test.com" IN {
type master;
file "test.com.db";
allow-update { none; };
};

zone "0.168.192.in-addr.arpa" IN {
type master;
file "db.192.168.0.155";
allow-update { none; };
};
[root@abc root]# nslookup
>
>
[2]+ Stopped nslookup
[root@abc root]# ls
anaconda-ks.cfg Desktop evolution install.log install.log.syslog
[root@abc root]# bold
-bash: bold: command not found
[root@abc root]# vi /etc/named.conf
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 "test.com" IN {
type master;
file "test.com.db";
allow-update { none; };
};

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

include "/etc/rndc.key";
-----------------------------------------这是test.com.db 的设置------------------------------------------
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA www.test.com. test.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS www.test.com.
localhost IN A 127.0.0.1
www IN A 193.168.0.155
~
~
~
------------------------------------------这是db.192.168.0.155 的设置-----------------------------------
$TTL 86400
@ IN SOA www.test.com. test.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS www.test.com.

155 IN PTR test.com.
-------------------------------------------------------------这是 /etc/resolv.conf 的设置-------------------------
nameserver 192.168.0.155
domain-name-servers www.test.com
文章评论

共有 0 条评论