免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1683 | 回复: 1
打印 上一主题 下一主题

[DNS] DNS安装失败!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-20 16:55 |只看该作者 |倒序浏览
[root@localhost root]# rpm -aq|grep bind
redhat-config-bind-1.9.0-13
bind-9.2.1-16
bind-utils-9.2.1-16
ypbind-1.11-4
[root@localhost root]# rpm -aq|grep caching-nameserver
caching-nameserver-7.2-7

[root@localhost etc]# vi 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 "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; };
};


#add by xjy 20060220
zone "cdfun.net" {
type master;
file "cdfun.net";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa";
};


include "/etc/rndc.key";

vi cdfun.net
$TTL 86400
cdfun.net. IN SOA localhost. root (
    10 ; serial
    28800 ; refresh
    14400 ; retry
    3600000 ; expire
    86400 ; ttl
    )

cdfun.net. IN NS dns.cdfun.net.
dns  IN A 192.168.1.68
gateway  IN A 192.168.1.1
rh9 IN A 192.168.1.67
winxp1 IN A 192.168.1.167

[root@localhost named]# vi 1.168.192.in-addr.arpa
$TTL 86400
@ IN SOA localhost. root (
    10 ; serial
    28800 ; refresh
    14400 ; retry
    3600000 ; expire
    86400 ; ttl
    )

@  IN NS dns.cdfun.net.
1  IN PTR gateway.cdfun.net.
68  IN PTR dns.cdfun.net.
67 IN PTR rh9.cdfun.net.
167 IN PTR winxp1.cdfun.net.

[root@localhost local]# rndc status
number of zones: 6
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running



3台机器
dns:192.168.1.68
rh9:192.168.1.67
winxp1:192.168.1.167


192.168.1.167:
D:\>nslookup 192.168.1.167
*** Can't find server name for address 192.168.1.68: No response from server
Server:  ns.ahhfptt.net.cn
Address:  202.102.192.68

*** ns.ahhfptt.net.cn can't find 192.168.1.167: Non-existent domain

192.168.16.67:
[root@localhost root]# host 192.168.1.67
Host 67.1.168.192.in-addr.arpa not found: 2(SERVFAIL)
[root@localhost root]# host rh9
Host rh9 not found: 3(NXDOMAIN)

[ 本帖最后由 xy-coordinate 于 2006-2-21 08:47 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-02-20 17:32 |只看该作者
1W分感谢“好好先生”斑竹,他在
http://bbs.chinaunix.net/viewthr ... ight=dns&page=4
中“35楼”一语中的!!!
killall -9 named;service named start
rh9中的bind有bug,启动后不能停下来。


肯定是我修改了配置参数,直接用
[root@localhost named]# service named restart
停止 named:
named 已经在运行[root@localhost named]#

没有成功重启named进程!!!



[ 本帖最后由 xy-coordinate 于 2006-2-21 14:17 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP