|
|
发表于 2004-6-24 23:50:40
|
显示全部楼层
/etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
forwarders { 202.116.128.1; };
notify yes;
/*
* 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;
};
logging {
channel LAMER_log {
file "/var/log/dns/dns-lamer.log" versions 3 size 10m;
severity info;
print-severity yes; print-time yes;
};
channel SEC_log {
file "/var/log/dns/dns-sec.log" versions 3 size 10m;
severity info;
print-severity yes; print-time yes;
};
channel STAT_log {
file "/var/log/dns/dns-stat.log" versions 3 size 10m;
severity info;
print-severity yes; print-time yes;
};
category lame-servers { LAMER_log; };
category security { SEC_log; };
};
/* category cname { null; };
category statistics { STAT_log; };*/
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 "020i.com" {
type master;
file "020i.com";
allow-query { any; };
};
zone "63.20.218.in-addr.arpa" IN {
type master;
file "020i.ptr";
};
include "/etc/rndc.key";
root: /var/named # cat 020i.com
$ttl 16097
@ IN SOA 020i.com. root.020i.com. (
2003088809;
28800;
14400;
3600000;
16097);
@ IN NS ns.020i.com.
ns IN A 218.20.63.141
888 IN CNAME ns
888 IN CNAME ns
root: /var/named #
root: /var/named # cat 020i.ptr
$ttl 16097
@ IN SOA 020i.com. root.020i.com. (
2003088808;
28800;
14400;
3600000;
16097);
IN NS snoopyhome.8800.org.
141 IN PTR snoopyhome.8800.org.
root: /var/named # |
|