- 论坛徽章:
- 0
|
redhat as 3.0dns服务器resolv.conf文件内容疑惑
我按照DNS配置的方法设置了一遍,文件配置如下:各位老大帮忙找找错误:
hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 mytest localhost.localdomain localhost
host.conf
order hosts,bind
multi on
nospoof on
relosv.conf
domain mytest.com
nameserver 192.168.211.110
localhost
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 "211.168.192.in-addr.arpa" IN {
type master;
file "210.168.192.file";
};
zone "mytest.com" IN {
type master;
file "mytest.com";
};
include "/etc/rndc.key";
211.168.192.file:
$TTL 86400
@ IN SOA www.mytest.com. root.www.mytest.com. {
2004090201 ;serial
28800 ; refresh
14400 ; retry
640800; expire
86400 ; ttl
}
@ IN NS mytest.com.
7 IN PTR www.mytest.com.
以上为我的DNS服务器的设置文件,其中正向解析配置文件没有列出来,我的DNS服务器的IP为192.168.211.110 ,网关:192.168.211.1 掩码为:255.255.255.0,请问我这样配置DNS有问题吗? |
|