LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 485|回复: 3

pinksnoopy请帮忙,dns的问题

[复制链接]
发表于 2004-5-25 20:55:05 | 显示全部楼层 |阅读模式
我按照精华贴里面设置过了,而且配置都一样的情况下还是不行,nslookup还是不对,能不能给我这方面的资料,谢谢了,或者给一个简单明了的配置,我现在不能上msn,所以只能在这里问你了,不好意思
 楼主| 发表于 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
发表于 2004-5-25 22:24:46 | 显示全部楼层
从配置文件看上去看不出什么问题,cat /var/log/message |grep named出来的信息贴出来

ps出来有没named进程 ?

用nslookup 或 dig 检查域名记录
发表于 2004-5-25 22:31:28 | 显示全部楼层
你可以先参考一下别人的配置文件,或是修改一下,看下出什么问题

要看日志呀,
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表