免费注册 查看新帖 |

Chinaunix

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

[DNS] 紧急求助,关于as 2.1上的DNS配置问题,已经三个星期了 [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-06-05 09:39 |只看该作者 |倒序浏览
我按照论坛上的精华去配置redhat as 2.1自带的DNS,但无论怎样配都出现如何出错信息

>; mail.chen.com
Server:         172.16.23.9
Address:        172.16.23.9#53

** server can't find mail.chen.com.: SERVFAIL
>; 172.16.23.9
Server:         172.16.23.9
Address:        172.16.23.9#53

** server can't find 9.23.16.172.in-addr.arpa.: SERVFAIL
>;

但我本机却能正常解析
>; localhost
Server:         172.16.23.9
Address:        172.16.23.9#53

Name:   localhost
Address: 127.0.0.1

现在附帖上我的配置文件,请各位高手帮忙看看到底那里出错了?
[tong@chen tong]$ more /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 "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 "chen.com" IN {
        type master;
        file "chen.com";
};

zone "23.16.172.in-addr.arpa" IN {
        type master;
        file "23.16.172";
        allow-update { none; };
};

include "/etc/rndc.key";

感觉这个文件应该没有问题吧?

more /var/named/chen.com

$TTL    86400
@       IN      SOA     chen.com. root.chen.com.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              @1D  IN      NS      chen.com.
              @ 1D IN      MX  10       chen.com.

$ORIGIN    chen.com.

1D IN A  172.16.23.9

www 1D IN A 172.16.23.9
ns 1D IN A 172.16.23.9
mail 1D IN A 172.16.23.9


#more /var/named/23.16.172

TTL

@ IN SOA ns.chen.com. root.chen.com.(

19997022700;serial

28800; refresh

14400; retry

3600000; expire

@ IN NS chen.com.

1 IN PTR chen.com.

2 IN PRT mail.chen.com.

4 IN PRT ns.chen.com.


应该是上面两个文件有问题,但我改来改去还是不行.另外请问DNS服务如何重启,因为我找不到in.named这个文件,一直只能用重启电脑来重启,好麻烦.

论坛徽章:
0
2 [报告]
发表于 2005-06-05 14:36 |只看该作者

紧急求助,关于as 2.1上的DNS配置问题,已经三个星期了

hi ...

1. to restart dns server without reboot the server .
    #service named restart     ### must login as root user

2. 1st u need to do is confirm the dns server is running , maybe u can off the firewall service 1st. step as below
    #service iptables stop
     # service named restart
     
check the dns server is running or not ?
     # ps -ef | grep named    #if u see more line out from terminal, then dns server should running.


3. to confirm dns can resolve the name -->; ip
     # host abc            #abc is ur server hostname

4. if error prompt out , solve this problem 1st b4 go to another step.

hope can help u .

i think ur /var/named/chen.com is wrong

NS chen.com    ==>; wrong

1. NS  xxx          ==>; xxx is ur server hostname ,

to get the server hostname , at command prompt type #hostname

this is ur NS xxx

论坛徽章:
0
3 [报告]
发表于 2007-09-10 11:25 |只看该作者
/var/named/db.example1
$TTL 86400
@ IN SOA server1.example1.com. Root.server1.example1.com. (
2003070401 1H 1M 1W 1D )
IN NS server1.example1.com.
IN A 192.168.0.254
server1是你的主机名
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP