URN Logo
UNIX Resources » Linux » China Linux Forum » 域名服务器和邮件服务器 » 6 » 有关DNS解析的初级问题,望广大高手指点,谢谢
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
有关DNS解析的初级问题,望广大高手指点,谢谢
 
 
 
Subject: 有关DNS解析的初级问题,望广大高手指点,谢谢
Author: hero1981    Posted: 2005-04-06 20:32    Length: 4,173 byte(s)
[Original] [Print] [Top]
Linux DNS SRV IP:192.168.1.4
WIN2kp Client IP:192.168.1.1
客户机为WIN2KP,网关,DNS地址都指向linux DNS服务器

没有启动named时,在W2kp客户端
C:>nslookup
*** Can't find server name for address 192.168.1.4: No response from server
*** Default servers are not available
Default Server: UnKnown
Address: 192.168.1.4

> test.com
Server: UnKnown
Address: 192.168.1.4

*** UnKnown can't find test.com: No response from server
>

启动了named时,在W2kp客户端
C:>nslookup
Default Server: test.com
Address: 192.168.1.4

> test.com
Server: test.com
Address: 192.168.1.4

DNS request timed out.
timeout was 2 seconds.
*** test.com can't find test.com: Server failed
>

以下是Linux DNS配置文件
[root@localhost named]# 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 "test.com" IN {
type master;
file "name2ip";
};

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

include "/etc/rndc.key";


##############################name2ip正向解析文件
[root@localhost named]# more name2ip
$TTL 86400
$ORIGIN test.com.
@ 1D IN SOA test.com. root.test.com. (
43 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS test.com.
1D IN A 192.168.1.4.
www IN CNAME test.com.


##############################ip2name反向解析文件
$TTL 86400
@ IN SOA test.com. root.test.com. (
1997022701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS test.com.

4 IN PTR test.com.


不知何故,总是在客户端解析报错,在浏览器里输入域名业务也无法找到地址,请指教
[Original] [Print] [Top]
Subject: Re: 有关DNS解析的初级问题,望广大高手指点,谢谢
Author: MikeWu    Posted: 2005-04-09 12:34    Length: 62 byte(s)
[Original] [Print] [Top]
估计是NAMED没有起来.建议你看一下日志(一般为/var/log/message),,
[Original] [Print] [Top]
Subject: Re: 有关DNS解析的初级问题,望广大高手指点,谢谢
Author: jingzhi    Posted: 2005-04-09 22:23    Length: 362 byte(s)
[Original] [Print] [Top]
检查resolv.conf 和host.conf
设置搜索顺序。
或者干脆吧resolv.conf删除。
俺的DNS只能做正向解析,不能做反向解析,更郁闷!!!
查不出错来。
日志要看,但有时看了也没有用,不知道是哪儿的问题啊!是吧。
在网上看了一位大哥,把bind删了,之后重装上去,配置DNS,之后成功!!!
呵呵,林子大了,什么怪问题都出!!
[Original] [Print] [Top]
« Previous thread
已经正常实现 qmail+vpopmail+mysql + php + apache 用FoxMai
域名服务器和邮件服务器
6
Next thread »
可否把本地sendmail寄出的信件全部经另一台主机relay再送出?
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
备案序号: 京ICP备05006143    webmaster: webmaster@unixresources.net
This page created on 2008-07-17 02:52:29, cost 0.035171031951904 ms.