免费注册 查看新帖 |

Chinaunix

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

[DNS] 在DNS从服务器无法同步主服务器 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-08 17:10 |只看该作者 |倒序浏览
主DNS服务器能够正常的工作;
/var/log/messages 里记录
... transfer of "dimain.com/IN" from 192.168.2.200#53 : failed while receving  responses :  file not found


主服务器name.conf
//
// named.conf for Red Hat caching-nameserver
//

options {
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
    /*
     * 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; };
};

view "2.0" {
match-clients { 192.168.2.0/24;};

zone "." IN {
    type hint;
    file "named.ca";
    };

zone "domain.com" IN {
    type master;
    file "2.0/named.hosts";
    allow-transfer { 192.168.2.201; };
    };

zone "168.192.in-addr.arpa" IN {
    type master;
    file "2.0/named.rev";
    allow-transfer { 192.168.2.201; };
    };

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; };
    };
};

view "3.0" {
match-clients {192.168.3.0/24 ;};

zone "." IN {
    type hint;
    file "named.ca";
    };

zone "domain.com" IN {
    type master;
    file "3.0/named.hosts";
    allow-transfer { 192.168.2.201; };
    };

zone "168.192.in-addr.arpa" IN {
    type master;
    file "3.0/named.rev";
    allow-transfer { 192.168.2.201; };
    };

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";


从服务器name。conf
//
// named.conf for Red Hat caching-nameserver
//

options {
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
    /*
     * 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; };
};

view "2.0" {
match-clients { 192.168.2.0/24;};

zone "." IN {
    type hint;
    file "named.ca";
    };

zone "domain.com" IN {
    type slave;
    file "slaves/2.0/named.hosts";
    masters { 192.168.2.200; };
    };

zone "168.192.in-addr.arpa" IN {
    type slave;
    file "slaves/2.0/named.rev";
    masters { 192.168.2.200; };
    };

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; };
    };
};

view "3.0" {
match-clients {192.168.3.0/24 ;};

zone "." IN {
    type hint;
    file "named.ca";
    };

zone "domain.com" IN {
    type slave;
    file "slaves/3.0/named.hosts";
    masters { 192.168.2.200; };
    };

zone "168.192.in-addr.arpa" IN {
    type slave;
    file "slaves/3.0/named.rev";
    masters { 192.168.2.200; };
    };

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";

论坛徽章:
0
2 [报告]
发表于 2007-07-08 17:16 |只看该作者
是不是我从服务器的name.conf有错,希望大虾帮忙看下谢谢 了

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
3 [报告]
发表于 2007-07-08 17:23 |只看该作者
tree /var/named 的結果如何?

论坛徽章:
0
4 [报告]
发表于 2007-07-08 17:24 |只看该作者
log
主要出错信息
Jul  6 01:42:55 second named[4107]: received notify for zone 'domain.com'
Jul  6 01:42:55 second named[4107]: received notify for zone 'domain.com'
Jul  6 01:42:55 second named[4107]: dumping master file: slaves/2.0/tmp-XXXXKW2X 8L: open: file not found
Jul  6 01:42:55 second named[4107]: transfer of 'domain.com/IN' from 192.168.2.2 00#53: failed while receiving responses: file not found
Jul  6 01:42:55 second named[4107]: transfer of 'domain.com/IN' from 192.168.2.2 00#53: end of transfer
Jul  6 01:42:55 second named[4107]: dumping master file: slaves/2.0/tmp-XXXXDPZP 61: open: file not found
Jul  6 01:42:55 second named[4107]: transfer of '168.192.in-addr.arpa/IN' from 1 92.168.2.200#53: failed while receiving responses: file not found
Jul  6 01:42:55 second named[4107]: transfer of '168.192.in-addr.arpa/IN' from 1 92.168.2.200#53: end of transfer
Jul  6 01:43:31 second named[4107]: dumping master file: slaves/3.0/tmp-XXXXomFj aU: open: file not found
Jul  6 01:43:31 second named[4107]: transfer of 'domain.com/IN' from 192.168.2.2 00#53: failed while receiving responses: file not found
Jul  6 01:43:31 second named[4107]: transfer of 'domain.com/IN' from 192.168.2.2 00#53: end of transfer
Jul  6 01:43:40 second named[4107]: dumping master file: slaves/3.0/tmp-XXXXMRKP 4a: open: file not found
Jul  6 01:43:40 second named[4107]: transfer of '168.192.in-addr.arpa/IN' from 1 92.168.2.200#53: failed while receiving responses: file not found
Jul  6 01:43:40 second named[4107]: transfer of '168.192.in-addr.arpa/IN' from 1 92.168.2.200#53: end of transfer
Jul  6 01:44:43 second named[4107]: dumping master file: slaves/2.0/tmp-XXXXUUT2 eg: open: file not found
Jul  6 01:44:43 second named[4107]: transfer of 'domain.com/IN' from 192.168.2.2 00#53: failed while receiving responses: file not found
Jul  6 01:44:43 second named[4107]: transfer of 'domain.com/IN' from 192.168.2.2 00#53: end of transfer
Jul  6 01:45:18 second named[4107]: dumping master file: slaves/3.0/tmp-XXXXYaYb RU: open: file not found
Jul  6 01:45:18 second named[4107]: transfer of '168.192.in-addr.arpa/IN' from 1 92.168.2.200#53: failed while receiving responses: file not found
Jul  6 01:45:18 second named[4107]: transfer of '168.192.in-addr.arpa/IN' from 1 92.168.2.200#53: end of transfer
Jul  6 01:45:30 second named[4107]: dumping master file: slaves/3.0/tmp-XXXXfexx K6: open: file not found
Jul  6 01:45:30 second named[4107]: transfer of 'domain.com/IN' from 192.168.2.2 00#53: failed while receiving responses: file not found
Jul  6 01:45:30 second named[4107]: transfer of 'domain.com/IN' from 192.168.2.2 00#53: end of transfer
Jul  6 01:46:33 second named[4107]: dumping master file: slaves/2.0/tmp-XXXX57rq U6: open: file not found
Jul  6 01:46:33 second named[4107]: transfer of '168.192.in-addr.arpa/IN' from 1 92.168.2.200#53: failed while receiving responses: file not found
Jul  6 01:46:33 second named[4107]: transfer of '168.192.in-addr.arpa/IN' from 1 92.168.2.200#53: end of transfer

论坛徽章:
0
5 [报告]
发表于 2007-07-08 17:25 |只看该作者
原帖由 網中人 于 2007-7-8 17:23 发表
tree /var/named 的結果如何?

额,我用的是RHEL 4.貌似没有这个命令。。

论坛徽章:
0
6 [报告]
发表于 2007-07-11 16:39 |只看该作者
chown -R /var/named/chroot/var/named *

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
7 [报告]
发表于 2007-07-11 23:13 |只看该作者
沒有 tree 命令哦?
那用 find /var/named 也行

论坛徽章:
0
8 [报告]
发表于 2007-07-12 22:03 |只看该作者
as4 关闭 Selinux

论坛徽章:
0
9 [报告]
发表于 2007-07-15 09:56 |只看该作者
恩 我也碰到过类似问题,关了selinxu就ok了

论坛徽章:
0
10 [报告]
发表于 2007-08-09 01:01 |只看该作者
关SElinux是真解,我最近也被这个弄的头都大了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP