|
|
DNS的反解文件不是一定要的吧??所以我的配置如下,我用win的机子来测试。不通。
那位朋友能帮我看看
[root@RHCE02 root]# cat /etc/resolv.conf
search linux.com
nameserver 192.168.1.2
[root@RHCE02 root]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 RHCE02 localhost.localdomain localhost
[root@RHCE02 root]# 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 "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "linux.com" IN {
type master;
file "linux.com.znoe";
};
include "/etc/rndc.key";
[root@RHCE02 root]# cat /var/named/linux.com.znoe
$TTL 86400
@ IN SOA linux.com. root.linux.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS linux.com.
www IN A 192.168.1.2 |
|