==============================
// file:/etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
forward{ 202.119.230.8;202.119.29.3;};
//*
// * 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
//
zone "." IN {
type hint;
file "named.ca";
};
zone "njuptm.edu.cn" IN {
type master;
file "named.test";
};
zone "241.10.10.in-addr.arpa" IN {
type master;
file "named.test.arpa";
};
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; };
};
============================
// file: /var/named/named.test
//include "/etc/rndc.key";
"/etc/named.conf" 46L, 891C
@ IN SOA nc.njuptm.edu.cn.
tommy.nc.njuptm.edu.cn.
( 2003112101 ;Serial
10800 ;Refresh
3600 ;Retry
3600000 ;Expire
86400 ) ;Minimum
@ IN NS nc.njuptm.edu.cn.
nc IN A 10.10.241.31
localhost IN A 127.0.0.1
loopback IN CNAME localhost
mail IN MX 10 nc.njuptm.edu.cn
dns IN A 10.10.241.31
ftp IN CNAME nc
www IN CNAME nc
mail IN CNAME nc
=============================
// file:/var/named/0.0.127.in-addr.arpa
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS localhost.
1 IN PTR localhost.
==============================
// file: /var/named/named.test.arpa
@ IN SOA nc.njuptm.edu.cn.
tommy.nc.njuptm.edu.cn.
( 2003112101 ;Serial
10800 ;Refresh
3600 ;Retry
3600000 ;Expire
86400 ) ;Minmum
@ IN NS nc.njuptm.edu.cn.
31 IN PTR nc.njuptm.edu.cn.
===============================
// file: /var/named/localhost.zone
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial
(d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1
我的也不能启动,下面的是出错信息。(我的linux是用VM在2000下虚拟的)
[root@dns root]# nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
>