我配了DNS服务,但为什么本机可以解析,但网上其它机器就不能用这个DNS

yifengling0 2003-05-29 06:27:10
我 /etc/init.d/named restart 时候发现服务停止时候没有什么显示,但启动显示[OK]这样本机可以用了~~网上的机器就不行了.谁知道吗?
...全文
292 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
AL_lew 2003-06-19
  • 打赏
  • 举报
回复
maybe in your LAN,there is a DNS server, thus ,maybe you can add a forward option in UR conf file like this:

options{
directory
forward first;
forwarders{UR LAN DNS IP addr;};
}

and if this can't work , whynot try using a linux CLIENT to find out if the problem in the client?



spark_li 2003-06-16
  • 打赏
  • 举报
回复
是不是这样的原因,你的dns机放火墙没有开放port 53的访问
你在客户机上telnet dns 53看看?
AL_lew 2003-06-16
  • 打赏
  • 举报
回复
客户机的网络要重新启动

ipconfig/renew
tgliu 2003-06-04
  • 打赏
  • 举报
回复
我也想遇到这样的情况,本机一切正常,可是windows 2000却无法解析,但Ping Linux DNS服务器的IP地址可以。
yifengling0 2003-06-04
  • 打赏
  • 举报
回复
帮帮忙,有没有碰到如此情况的人呀
yifengling0 2003-06-02
  • 打赏
  • 举报
回复
up
wangjiayan 2003-05-30
  • 打赏
  • 举报
回复
内联网主机服务器的主机名为 pc10,IP 是:192.168.1.10,启用 tcpip.cxm 作为域名.
整个过程需要配置以下几个配置文档:
/etc/hosts
/etc/host.conf
/etc/resolv.conf
/etc/named.conf
/var/named/named.192.168.1
/var/named/named.tcpip.cxm
1.首先配置 /etc/hosts 指定 Ip 到主机的影射,下面是配置好的文档
-------------------------------------------------------
#IP Address Hostname Alias
127.0.0.1 localhost
192.168.1.10 pc10 pc10.tcpip.cxm
--------------------------------------------------------
2.接下来是 /etc/host.conf 的配置
--------------------------------------------------------
order hosts, bind
multi on
--------------------------------------------------------
这个配置的意思是从 /etc/hosts 开始查询,然后是 DNS,如果是多个主机将全部返回
3.配置 /etc/resolv.conf
--------------------------------------------------------
search tcpip.cxm
nameserver 192.168.1.10
--------------------------------------------------------
这儿配置的是 DNS 客户,search 指定的是客户默认域名,nameserver 则是指定使用的 DNS 服务器的 IP
地址,这里使用的是正在配置 DNS 服务器的主机 IP 地址:192.168.1.10
4.配置 /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
//
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "named.192.168.1";
};
zone "tcpip.cxm" {
type master;
file "named.tcpip.cxm";
};
--------------------------------------------------------
里面的 // 后和 /* */ 里的内容都是注释,尤其要注意里面的标点要正确,zone "1.168.192.in-addr.arpa"
是配置反序查找,而 zone "tcpip.cxm" 则是配置正序查找
5.创建区数据文件 /var/named/named.192.168.1,只需复制 /var/named/named.local 为
/var/named/named.192.168.1 进行修改(注意:是复制不是更名),修改后的内容如下:
---------------------------------------------------------
@ IN SOA pc10.tcpip.cxm. hostnaster.pc10.tcpip.cxm. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS pc10.tcpip.cxm.
1 IN PTR pc10.tcpip.cxm.
---------------------------------------------------------
里面各个标点也必须正确!
6.创建数据文件 /etc/named.tcpip.cxm ,正确结果如下:
---------------------------------------------------------
@ IN SOA pc10.tcpip.cxm. hostmaster.pc10.tcpip.cxm. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS pc10
pc10 IN A 192.168.1.10
www IN CNAME pc10
----------------------------------------------------------
这里 NS 是域名服务器, A 是地址记录,CNAME 是规范的名程也指替换,也就是说用 pc10.tcpip.cxm 与
www.tcpip.cxm 一样.
7.仔细检查确保正确后,重新启动 DNS 守护进程 named:
#/etc/rc.d/init.d/named restart
8.检查 DNS 服务器
先 telnet 192.168.1.10 ,然后 ping 外部网址,再用 nslookup
正确的话 DNS 服务器配置成功.这时内部网的计算机都可用 192.168.1.10 作为域名服务器.



yifengling0 2003-05-30
  • 打赏
  • 举报
回复
这个我当然知道了啦~~~就是设了之后不好用呢~
  • 打赏
  • 举报
回复
网络联接正常吗?
要不先换个DNS服务器看会不会有问题。
yifengling0 2003-05-30
  • 打赏
  • 举报
回复
谢谢楼上的,我正如你法设置完成,在本机上PING nslookup都可以啊~~

但我在NT的客户机为什么就不给Ping了呢,一个也解析不了!!
bjay 2003-05-29
  • 打赏
  • 举报
回复
别人的DNS服务器要设到你这个机器的IP才行。

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧