DNS服务器端可以使用DNS服务,但客户端无法使用

 所属目录:Java   |   类型:技术问答   |   时间:2007-05-21
 问题:

dns服务器运行在192.168.1.21上,在192.168.1.21上可以使用dns服务,比如:  
  [root@atslxt001   named]#   nslookup   atslxt002  
  server:                   192.168.1.21  
  address:                 192.168.1.21#53  
   
  name:       atslxt002.tcs.com  
  address:   192.168.1.22  
   
  但是从客户端atslxt002却无法使用dns服务,比如:  
  [root@atslxt002   ~]#   nslookup   atslxt002  
  ;;   connection   timed   out;   no   servers   could   be   reached  
   
  [root@atslxt002   ~]#   nslookup   atslxt001  
  ;;   connection   timed   out;   no   servers   could   be   reached  
   
  客户端atslxt002上面的配置为:  
  [root@atslxt002   ~]#   more   /etc/resolv.conf  
  search   tcs.com  
  nameserver   192.168.1.21  
   
  [root@atslxt002   ~]#   ping   192.168.1.21  
  ping   192.168.1.21   (192.168.1.21)   56(84)   bytes   of   data.  
  64   bytes   from   192.168.1.21:   icmp_seq=0   ttl=64   time=0.322   ms  
  64   bytes   from   192.168.1.21:   icmp_seq=1   ttl=64   time=0.296   ms  
  64   bytes   from   192.168.1.21:   icmp_seq=2   ttl=64   time=0.288   ms  
   
  ---   192.168.1.21   ping   statistics   ---  
  3   packets   transmitted,   3   received,   0%   packet   loss,   time   2000ms  
  rtt   min/avg/max/mdev   =   0.288/0.302/0.322/0.014   ms,   pipe   2  
   
  [root@atslxt002   ~]#   more   /etc/sysconfig/network  
  networking=yes  
  hostname=atslxt002.tcs.com  
   
  [root@atslxt002   ~]#   more   /etc/sysconfig/networking/devices/ifcfg-eth0  
  device=eth0  
  onboot=yes  
  bootproto=none  
  ipaddr=192.168.1.22  
  netmask=255.255.255.0  
  gateway=192.168.1.1  
  type=ethernet  
  userctl=no  
  peerdns=yes  
  ipv6init=no  
   
   
  高手,请问是什么原因?  
 

· 网友精彩回答:

发表者:cwwhy

防火墙允许外部机器访问dns服务吗,应该是它的问题

发表者:ghtsao

nslookup   192.168.1.21  
  不要用名字,名字在没从dns或hosts中取到之前,地址根本解不出来

.
处理 SSI 文件时出错
© 2006-2008 All Rights Reserved