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.hz160.com"IN{
type master;
file "mydomain.db";
allow-update {none;};
};
zone "0.168.192.in-addr.arpa"IN{
type master;
file "0.168.192";
allow-update {none;};
};
$TTL 86400
@ IN SOA ns.linux.hz160.com. root.ns.linux.hz160.com. (
2002120511 ; serial (d. adams)
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ) ; minimum
IN NS ns.linux.hz160.com.
localhost IN A 127.0.0.1
IN A 192.168.0.1
ns IN A 192.168.0.1
; mail A 192.168.0.1
; www A 192.168.0.1
; pc98 A 192.168.0.128
[root@ns zb]# 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.
> ns
Server: 192.168.0.1
Address: 192.168.0.1#53
$TTL 86400
@ IN SOA ns.linux.hz160.com. root.ns.linux.hz160.com. (
2002120511 ; serial (d. adams)
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ) ; minimum
IN NS ns.linux.hz160.com.
localhost IN A 127.0.0.1
IN A 192.168.0.1
ns IN A 192.168.0.1
; mail A 192.168.0.1
; www A 192.168.0.1
; pc98 A 192.168.0.128[/quote]
我仔细看了看。
ns IN A 192.168.0.1
更改为:
ns.linux.hz160.com. IN A 192.168.0.1
你试一试。
$TTL 86400
@ IN SOA ns.linux.hz160.com. root.ns.linux.hz160.com. (
2002120511 ; serial (d. adams)
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ) ; minimum
IN NS ns.linux.hz160.com.
localhost IN A 127.0.0.1
IN A 192.168.0.1
ns IN A 192.168.0.1
; mail A 192.168.0.1
; www A 192.168.0.1
; pc98 A 192.168.0.128[/quote]