DNS lookup failures: (Bad hostname)

[email protected] (Bill Moseley) Fri, 9 Jan 2015 07:27:44 -0800
Newsgroups perl.libwww
Message-ID <CAKhN_m5=sJXGN8vGmcjnNkd3KpH8hXagVh2UdN3d36QdwYUdvA@mail.gmail.com>
--001a113ebdb42906b2050c39ce20
Content-Type: text/plain; charset=UTF-8

On our production machines running LWP 6.04 and LWP::Protocol::https 6.03 I
see a few times a day messages like:

500 Can't connect to dl.dropboxusercontent.com:443 (Bad hostname)


Yet, when I try fetching using lwp-request on the same machine the lookup
works fine and I can fetch the content.

I suspect an issue with our own DNS, but I'm only aware of these lookup
failures reported by LWP (we have lots of other non-Perl code that is doing
lookups all day long).

Anyway, I just wanted to check here to see if anyone else has also seen
hostname lookup failures for valid hostnames that might indicate a problem
in the Perl libraries.


I'll look at adding more debugging -- like running dig or hostname on LWP
failures of this type and see if those also fail at the same time.    Any
other ideas for debugging?

Thanks,

-- 
Bill Moseley
[email protected]

--001a113ebdb42906b2050c39ce20
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On our production machines running LWP 6.04 and=C2=A0LWP::=
Protocol::https 6.03 I see a few times a day messages like:<div><br></div><=
div><blockquote style=3D"margin:0px 0px 0px 40px;border:none;padding:0px"><=
div>500 Can&#39;t connect to <a href=3D"http://dl.dropboxusercontent.com:44=
3">dl.dropboxusercontent.com:443</a> (Bad hostname)<br clear=3D"all"></div>=
</blockquote><div><br></div>Yet, when I try fetching using lwp-request on t=
he same machine the lookup works fine and I can fetch the content.</div><di=
v><br></div><div>I suspect an issue with our own DNS, but I&#39;m only awar=
e of these lookup failures reported by LWP (we have lots of other non-Perl =
code that is doing lookups all day long).</div><div><br></div><div>Anyway, =
I just wanted to check here to see if anyone else has also seen hostname lo=
okup failures for valid hostnames that might indicate a problem in the Perl=
 libraries.</div><div><br></div><div><br></div><div>I&#39;ll look at adding=
 more debugging -- like running dig or hostname on LWP failures of this typ=
e and see if those also fail at the same time. =C2=A0 =C2=A0Any other ideas=
 for debugging?</div><div><br></div><div>Thanks,</div><div><br></div><div>-=
- <br><div class=3D"gmail_signature">Bill Moseley<br><a href=3D"mailto:mose=
[email protected]" target=3D"_blank">[email protected]</a></div>
</div></div>

--001a113ebdb42906b2050c39ce20--