|
|
|
|
| Strange DNS Cache-only Server problem on RH 9 |
 Strange DNS Cache-only Server problem on RH 9 - luckeycn [ 2004-04-26 06:24 | 1,103 byte(s)]
 Re: Strange DNS Cache-only Server problem on RH 9 - riser [ 2004-04-26 09:24 | 883 byte(s)]
 Re: Strange DNS Cache-only Server problem on RH 9 - luckeycn [ 2004-04-26 09:50 | 424 byte(s)]
 Re: Strange DNS Cache-only Server problem on RH 9 - riser [ 2004-04-26 10:05 | 98 byte(s)]
 Re: Strange DNS Cache-only Server problem on RH 9 - luckeycn [ 2004-04-26 10:33 | 74 byte(s)]
 Of course - riser [ 2004-04-26 12:00 | 9 byte(s)]
 Re: Of course - luckeycn [ 2004-04-26 13:31 | 593 byte(s)]
 Re: Of course - riser [ 2004-04-26 13:48 | 81 byte(s)]
 Re: Of course - luckeycn [ 2004-04-27 10:19 | 346 byte(s)]
 Re: Of course - riser [ 2004-04-27 11:15 | 127 byte(s)]
 Re: Of course - luckeycn [ 2004-04-27 11:33 | 437 byte(s)]
 Re: Of course - riser [ 2004-04-27 11:56 | 272 byte(s)]
 Re: Of course - luckeycn [ 2004-04-27 12:21 | 1,151 byte(s)]
 Re: Of course - riser [ 2004-04-27 14:17 | 312 byte(s)]
 Re: Of course - luckeycn [ 2004-04-27 20:05 | 1,090 byte(s)]
 Re: Of course - kraml [ 2004-04-30 23:12 | 105 byte(s)]
 Re: Of course - riser [ 2004-04-28 09:00 | 145 byte(s)]
 Re: Of course - luckeycn [ 2004-04-27 10:14 | 566 byte(s)]
 Re: Of course - lhl [ 2004-04-27 11:07 | 840 byte(s)]
 Re: Of course - luckeycn [ 2004-04-27 11:25 | 1,245 byte(s)]
 Re: Of course - lhl [ 2004-04-27 11:33 | 86 byte(s)]
 Re: Of course - luckeycn [ 2004-04-27 11:38 | 540 byte(s)]
 Re: Of course - lhl [ 2004-04-27 11:46 | 32 byte(s)]
 Re: Of course - lhl [ 2004-04-26 19:59 | 99 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
1. Objective: Setup a Cache-only DNS server for Internet users
2. Environment:
a. RedHat 9 with only ¨DNS Server〃 package installed(2 components: standard and
caching name server). Version: BIND 9.2.1-16
b. Only one simple change in /etc/named.conf as below:
query-source address * port 53〃;
c. Update /var/named.ca based on root-servers.net
3. Symptoms: When using ¨dig〃, I can query all the sites, but NOT ¨granddictionnaire.com〃, which is a valid site I can query on my Windows 2000 Cache-only server.
4. Workaround: Have to add ¨forward only/first〃 and forwarder pointing to ISP. Then it becomes a caching and forwarding server, not just caching-only.
5. Bug? ¨service named restart〃. BTW. When running the command, it wonˇt stop the service. Have to modify /etc/init.d/named to kill the process instead. Bug??
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
->When using ¨dig〃, I can query all the sites, but NOT ¨granddictionnaire.com〃, which is a valid site I can query on my Windows 2000 Cache-only server.
There is no problem to resolve "granddictionnaire.com" in my linux box. So it has no business with what platform you are using.
->Bug? ¨service named restart〃. BTW. When running the command, it wonˇt stop the service. Have to modify /etc/init.d/named to kill the process instead. Bug??
Please refer to http://www.linuxforum.net/forum/showthreaded.php?Cat=&Board=dns&Number=446758&page=&view=&sb=&o=
|
|
|
----
Heart——>Linux
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
谢谢版主的回复, 我也觉得是. 但我一直都用最小安装.不装任何包,没有图形.唯一的东西是DNS.
然后改那几样东西.搞不懂哪里有问题.
请问您也是用RH9,cache only吗?有没有设forwarder?? 有forwarder是一定行的.
>>There is no problem to resolve "granddictionnaire.com" in my linux box. So it has no business with >>what platform you are using.
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
版主大人,您老人家回答问题也太简单了吧.
请您指教一下我的做法有什么问题: 多谢了.
1. 安装RH9, 只要DNS(base+caching),没有装任何其它包.
2. 改/etc/named.conf, query port 53.
3. 更新/var/named/named.ca.
4. chkconfig --level 345 named start
5. service named start
6. dig granddictionnaire.com 问题就来了.
7. workaround. 在/etc/named.conf里加 forward only(first) and forwarders就行.
奇怪的是我装了有大概7,8次, 一样的装法,用同一套CD. 有一次成功的. 但我实在
比不出我做了什么不同的事.
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
我找到问题的解决方案了.
1. cache不能找到granddictionnaire.com的问题.
workaround: 加forwarder. 不是说这样就不会用cache. 而只是cache里没有时,到forwarder去找.
只是把一个caching server变成了caching and forwarding server.
solution: 这是一个bug. 但redhat没有正式的patch.不过在它的rawhide里有一个版本9.2.2-P3解决了这个问题.
2. service named restart hung.
workaround: 改/etc/init.d/named. 直接杀进程, 不调用rndc.
solution: 又是bug. 还是这个9.2.2-P3解决了这个问题.
Cheers!
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
To riser:
Of course
还有一个问题. 你说你用rh 9没有这问题. 是不是你在linux box上设的DNS是你的ISP的DNS呀.
我发现这个问题是因为我把linux的DNS指向自己(127.0.0.1). 然后直接query root servers. 是一个pure
caching server. 如果你设了ISP的DNS, 已经是一个caching and forwarding了.
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
|
说句实话,你提问前就该弄明白这些dns的基本工作原理的。当然,我还是挺佩服你敢于提出质疑,但我可以明确地回答你,这些纯属画蛇添足。
|
|
----
Heart——>Linux
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
请问你指的画蛇添足是指那些呢? 我POST了那么多. 您总是回答的太简单. 让我死个明白吧.
而且你还没回答我的问题呢. 在你的那个LINUX上, 你的DNS是指向你的ISP, 还是它自己? 谢谢!
"说句实话,你提问前就该弄明白这些dns的基本工作原理的。当然,我还是挺佩服你敢于提出质疑,但我可以明确地回答你,这些纯属画蛇添足."
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
???? what do you know about quality? I have another windows 2000 server running cache-only(not forward) at no problem at all. If yo don't know what to say, don't keep chaning subject. I am sick your comment. I am here to discuss pure technical questions. Not try to argue with somebody.
I think you should keep up with riser. He/she is much better than you. I won't comment on technical part. but personality is way better.
"呵呵~~带宽跟质量是两个问题;这个双出口若是你管理的,最好检查你的出口路由器"
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
先提两点建议吧:
1、虽然你post了很多,但是我看不出有多少新意在里面,帖子好坏并不是单凭字数来衡量的。
2、多从自身出发找原因,比无端的怀疑别人可能要好得多。
PS:没办法,我只好在这里画蛇添足了:我这里的的dns当然是设的127.0.0.1。
|
|
----
Heart——>Linux
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
你说的都对. 我是在找原因. 我问你的设置不是在怀疑你,只是想比较一下有什么设置不同.我实在有点昏了.
请你帮忙帮到底.说直接一些吧. 根据我的做法. 请直接指出有什么错. 谢谢! 请务备直接回答技术问题本身:
再次感谢. 以下是我的安装过程:
1. rh9, only DNS(base+caching). original kernel 2.4.20-8
2. edit /etc/named.conf, query-source address * 53.
3. update /var/named/named.ca
4. chkconfig --level 345 named on
5. service named start
That's all.
问题是: dig granddictionnaire.com没反应.别的都行.
我试了不同的ISP, 不同的地方, 也用了不同的机器. 实在不知有什么不对. 搞笑的是在我装的
7,8遍中,有一次成功了. 但死活比不出不同. 我甚至列出所有的components and module版本.也看不出来.
请版主帮帮忙吧. 万分感激.
先提两点建议吧:
1、虽然你post了很多,但是我看不出有多少新意在里面,帖子好坏并不是单凭字数来衡量的。
2、多从自身出发找原因,比无端的怀疑别人可能要好得多。
PS:没办法,我只好在这里画蛇添足了:我这里的的dns当然是设的127.0.0.1。
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
难以理解,为了一个域名,你愿意如此煞费苦心。既然你如此执着,那么请问,对于你得出的结论:granddictionnaire.com之外,其它都行。你真的验证过吗?
这么多域名之中,偶尔有一个域名解析不了,实在是很正常的事,何况你自己说有时也可以解析。
另外,你做的步骤里面2、3、4步都是没有必要的。
|
|
----
Heart——>Linux
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
yes. I did a lot sites(it's impossible to test every single one. :-) ). The thing is that I have a windows 2000 cache only server on the same network that can resolve "granddictionnaire.com" without any problem while I am struggling with this redhat 9.
For production: step 2,3,4 are necessary:
2. Most firewall only allow standard dns port 53.
3. make sure the records are current
4. make sure the dns is up every time you reboot the server.
So, do you know what's wrong? maybe you can setup something like mine. It only takes about 30 minutes on a P4.
BTW. I only can use english in the office. no Chinese software. Thanks a lot!
难以理解,为了一个域名,你愿意如此煞费苦心。既然你如此执着,那么请问,对于你得出的结论:granddictionnaire.com之外,其它都行。你真的验证过吗?
这么多域名之中,偶尔有一个域名解析不了,实在是很正常的事,何况你自己说有时也可以解析。
另外,你做的步骤里面2、3、4步都是没有必要的。
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
|
Sorry, I couldn't reply you more because there is really no problem in my site. However, I still think you have no necessity to run step 2 and 3.
|
|
----
Heart——>Linux
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
我建议你打开bind的调试,dig之后检查log和named.run的输出,看看有什么问题
这样猜测没有办法找到问题
|
|
----
"最好的设计不是再也没有什么东西可以添加了,而是再也没有什么东西可以去掉"
|
|
[Original]
[Print]
[Top]
|
|
|