[hobbit] Two DNS lookups for a server but one fails

Henrik =?unknown-8bit?Q?St=C3=B8rner?= henrik at hswn.dk
Wed Jan 7 14:29:48 CET 2009


Hi Martin,

On Mon, Jan 05, 2009 at 01:58:56PM -0000, Ward, Martin wrote:
> *** DNS lookup of 'a:smtp.server.com' ***
> Timeout (channel destroyed)
> 
> In this instance it was the A record that failed but in others it is the
> NS record. I always get one of the queries back successfully, but not
> both.
> 
> These were working fine until I upgraded to Xymon 4.2.2 so this looks
> like the culprit. Any ideas or suggestions?

there was a change done in 4.2.2 - backported from the 4.3.x code - to
fix a bug that could cause the network tests to lockup while doing the
DNS lookups. It is probably that "fix" that causes the problem.

Going over the DNS code again, I think there's some flawed logic in
how it handles the lookups. Could you try the attached version of 
xymon-4.2.2/bbnet/dns.c ? Just copy it on top of the existing one,
then run "make" and copy the resulting xymon-4.2.2/bbnet/bbtest-net 
binary to your ~xymon/server/bin/ directory (save the existing one
just in case this completely breaks stuff).


Let me know if that is better.


Regards,
Henrik

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dns.c
Type: text/x-csrc
Size: 9124 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090107/020e546e/attachment.c>


More information about the Xymon mailing list