|
我是用CENTOS 5.2
HOSTNAME mail.gxtc.net
IP:172.16.0.230 这是我的详细配置过程,请问有什么问题呢?我配置后能正常起动。但是不能用
nslookup 不能解析,正反向都不行?这是为什么呢?
#cat /etc/named.conf
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-query { any; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { any; };
match-destinations { any; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
[root@mail etc]# cat named.rfc1912.zones
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "." IN {
type hint;
file "named.ca";
};
zone "gx tc.net.zone" IN {
type master;
file "gxtc.net.zone";
allow-update { none; };
};
zone "1.1.10.in-addr.arpa" IN {
type master;
file "1.1.10.zone";
allow-update { none; };
};
zone " goldkey.net.zone" IN {
type master;
file "goldkey.net.zone";
allow-update { none; };
};
zone "0.16.172.in-addr.arpa" IN {
type master;
file "0.16.172.zone";
allow-update { none; };
};
[root@mail named]# cat gxtc.net.zone
$TTL 86400
@ IN SOA gxtc.net root.gxtc.net (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS mail.gxtc.net.
* IN A 172.16.0.250
oa IN A 172.16.0.245
inside IN A 10.1.1.6
movies IN A 172.16.0.234
mail IN A 10.1.1.8
jpkc IN A 10.1.1.12
course IN A 172.16.0.248
webdisk IN A 172.16.0.237
equip IN A 172.16.0.239
diglib IN A 172.16.0.238
xk IN A 172.16.0.243
jwgl IN A 172.16.0.242
mrtg IN A 172.16.0.235
moodle IN A 172.16.0.232
www IN CNAME GXTC-WEB-SERV.gx tc.net.
web CNAME www
[root@mail named]# cat 1.1.10.zone
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
NS localhost.
2 IN PTR *.gxtc.net.
3 IN PTR *. goldkey.net.
6 IN PTR inside.gxtc.net.
7 IN PTR movies.gxtc.net.
8 IN PTR mail.gxtc.net.
12 IN PTR jpkc.gxtc.net.
[root@mail named]# cat goldkey.net.zone
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS localhost.
localhost IN A 127.0.0.1
* IN A 172.16.0.233
[root@mail named]# cat 0.16.172.zone
$TTL 86400
@ IN SOA localhost. root.mail.gxtc.net. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
NS localhost.
232 IN PTR moodle.gxtc.net.
233 IN PTR *.goldkey.net.
234 IN PTR movies.gxtc.net.
235 IN PTR mrtg.gxtc.net.
236 IN PTR update.gxtc.net.
238 IN PTR diglib.gxtc.net.
239 IN PTR equip.gxtc.net.
242 IN PTR jwgl.gxtc.net.
243 IN PTR xk.gxtc.net.
245 IN PTR oa.gxtc.net.
248 IN PTR course.gxtc.net.
249 IN PTR res.gxtc.net.
250 IN PTR *.gxtc.net. |
|