免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: wanjinjack
打印 上一主题 下一主题

[DNS] linux 8.0 DNS 配置问题 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2004-02-15 14:06 |只看该作者

linux 8.0 DNS 配置问题

原帖由 "jeffreyli" 发表:
指向后还是那样呀。


在win下显示的还是路由器上面的dns.

显示的还是路由器上的DNS?有没设上呀?
你用手动指定DNS呀,可以指定一个外网的DNS,一个你VM机器的IP为DNS

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-11-22 06:20:00
12 [报告]
发表于 2004-02-15 16:01 |只看该作者

linux 8.0 DNS 配置问题

偶脑子给木住了,,,,,,  

我也找了好多份这样的配置文档,,,,




我在win中把vm中的dns移到首位就可以nslookup到,,,
但在win 中ping不到他们。
是不是我的正向解析不对呢?
我在试验一下,,,,,

又劳几位兄弟了,,,,,,,

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-11-22 06:20:00
13 [报告]
发表于 2004-02-15 16:57 |只看该作者

linux 8.0 DNS 配置问题

当我起动named服务时,出现以下提示:
**name ***rndc:connect failed:connect refused



不知是什么意思。

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-11-22 06:20:00
14 [报告]
发表于 2004-02-18 08:56 |只看该作者

linux 8.0 DNS 配置问题

朋友们帮忙顶一下!

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-11-22 06:20:00
15 [报告]
发表于 2004-02-19 14:14 |只看该作者

linux 8.0 DNS 配置问题

[root@linux5 etc]# cat 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 "dns.domain" IN {
type master;
file "domain.zone";
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

zone "1.168.192.in-addr.arpa" IN {
      type master;
      file "192.168.1.rev";
};


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

include "/etc/rndc.key";
[root@linux5 etc]#
[root@linux5 named]# cat 192.168.1.rev
@ IN SOA dns.domain. root.dns.domain. (
2004021201 ;Serial
28800 ;Refresh
14400 ;Retry
3600000 ;Expire
86400 ) ;Minimum

IN NS dns.domain.

210 IN PTR dns.domain.
51  IN PTR www.domain.
19  IN PTR ftp.domain.
[root@linux5 named]#
[root@linux5 named]# cat domain.zone
@ IN SOA dns.domain. root.dns.domain. (
2004021201 ;
28800 ;
14400 ;
3600000 ;
86400 ) ;
IN NS dns.domain.
www IN A 192.168.1.51
dns IN A 192.168.1.210
ftp IN A 192.168.1.19

[root@linux5 named]#

大伙帮忙看一下哪儿不对?
用nslookup总是不能解析,但127.0.0.1可以

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-11-22 06:20:00
16 [报告]
发表于 2004-02-19 14:15 |只看该作者

linux 8.0 DNS 配置问题

没人来顶,俺再顶一次!!!   

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-11-22 06:20:00
17 [报告]
发表于 2004-02-20 09:20 |只看该作者

linux 8.0 DNS 配置问题

还是没人顶,那俺再来一次吧,,,,,,,,,,,,   

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
18 [报告]
发表于 2004-02-20 09:57 |只看该作者

linux 8.0 DNS 配置问题

把客户机的reslove.conf中加上nameserver的ip.

论坛徽章:
0
19 [报告]
发表于 2004-02-20 10:32 |只看该作者

linux 8.0 DNS 配置问题

我试了一下,可以解析的
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 "dns.domain" IN {
type master;
file "domain.zone";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.rev";
};


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

include "/etc/rndc.key";

domain.zone:
$TTL    86400
$ORIGIN dns.domain.
@                       1D IN SOA       @ root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                        1D IN NS        dns.domain.
dns                     1D IN A         192.168.1.29
www                     1D IN A         192.168.1.51
ftp                     1D IN A         192.168.1.19

192.168.1.rev:
$TTL    86400
@       IN      SOA     dns.domain. root.dns.domain.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      dns.domain.

29       IN      PTR     dns.domain.
51       IN      PTR     www.domain.
19       IN      PTR     ftp.domain.

[root@mylinux named]# nslookup dns.dns.domain
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         192.168.1.29
Address:        192.168.1.29#53

Name:   dns.dns.domain
Address: 192.168.1.29

[root@mylinux named]# nslookup www.dns.domain
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         192.168.1.29
Address:        192.168.1.29#53

Name:   www.dns.domain
Address: 192.168.1.51

[root@mylinux named]# nslookup 192.168.1.29
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         192.168.1.29
Address:        192.168.1.29#53

29.1.168.192.in-addr.arpa       name = dns.domain.

论坛徽章:
0
20 [报告]
发表于 2004-02-20 10:39 |只看该作者

linux 8.0 DNS 配置问题

不过俺的系统是RH9.0
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP