由 bluejesica 在 05-25-2004 20:55 发表:
pinksnoopy请帮忙,dns的问题
我按照精华贴里面设置过了,而且配置都一样的情况下还是不行,nslookup还是不对,能不能给我这方面的资料,谢谢了,或者给一个简单明了的配置,我现在不能上msn,所以只能在这里问你了,不好意思
学海无涯,回头也看不到岸
由 bluejesica 在 05-25-2004 22:20 发表:
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