- 论坛徽章:
- 0
|
用VM做的虚拟机。REDHAT AS3 IP;192.168.1.76
vi 192.168.1.76.zone
$TTL 86400
@ IN SOA server.spoker.cn. root.server.spoker.cn (
200504700 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expiry
86400) ; minimum
IN NS server.spoker.cn
76.1.168.192.IN-ADDR.ARPA. IN PTR server.spoker.cn
vi spoker.cn.zone
$TTL 86400
@ IN SOA @ server.spoker.cn. root.spoker.cn. (
42 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS server.spoker.cn
IN MX 10 server.spoker.cn
server IN A 192.168.1.76
vi named.conf
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* 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 "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
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 "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
zone "spoker.cn" IN {
type master;
file "spoker.cn.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.76.zone";
allow-update { none; };
};
include "/etc/rndc.key"; |
|