|
|

楼主 |
发表于 2004-5-25 22:20:12
|
显示全部楼层
1. 编辑/etc/named.conf
// generated by named-bootconf.pl
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 "bluejesica.com" IN {
type master;
file "named.bluejesica.com";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "named.bluejesica.com.rev";
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; };
};
include "/etc/rndc.key";
2. 编辑正向解析文件/var/named/named.bluejesica.com
$TTL 86400
@ IN SOA bluejesica.com. root.bluejesica.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS bluejesica.com.
IN MX 10 bluejesica.com.
my IN A 192.168.0.9
www IN CNAME bluejesica.com.
ftp IN CNAME bluejesica.com.
smtp IN CNAME bluejesica.com.
pop3 IN CNAME bluejesica.com.
3. 编辑反向解析文件/var/named/named.bluejesica.com.rev
$TTL 86400
@ IN SOA bluejesica.com. root.bluejesica.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS bluejesica.com.
50 IN PTR bluejesica.com.
4. 编辑/var/named/named.local文件
$TTL 86400
@ IN SOA bluejesicacom. root.bluejesica.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS bluejesica.com.
1 IN PTR localhost.
5. 编辑/etc/resolv.conf
# MADE-BY-RP-PPPOE
domain bluejesica.com
nameserver 192.168.0.9
search localdomain |
|