|
|
我想配置成一个主域服务器,只配置正向解释域.
/etc/resolv.conf文件为
nameserver 192.168.2.1
domain mylinux.com
search mylinux.com
cat /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 "mylinux.com" IN {
type master;
file "mylinux.com";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
include "/etc/rndc.key";
/var/named/mylinux.com
$TTL 86400
@ IN SOA mylinux.com. root.mylinux.com (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS mylinux.com.
@ IN A 192.168.2.1
www IN A 192.168.2.1
ftp IN A 192.168.2.1
mail IN A 192.168.2.1
同样的配置文件,我把它copy到RH9和AS3上,却一切正常!!!
当然这几台机子的IP我设成一样的(用VM做的实验)
请知道的大哥帮忙看一下,谢谢 |
|