[erlang-bugs] inet_res: unpredictable resolution failure ?

Mickaël Rémond mickael.remond@REDACTED
Thu May 15 10:10:02 CEST 2008


Hello,

Le 15 mai 08 à 09:33, Raimo Niskanen a écrit :

> On Wed, May 14, 2008 at 05:48:28PM +0200, Mickaël Rémond wrote:
>> Hello,
>>
>> I suspect a bug in inet_res. When using this resolver it seems we get
>> somewhat unpredictable results:
>> - gethostbyname can fails sometime (nxdomain error)
>> - connect sometimes fails with nxdomain error
>
> You mean gen_tcp:connect when using inet_res as resolver?

Yes.

>> If retry immediately the query / connect most of the time succeed.
>>
>> I know that this module is not documented, but to my knowledge it is
>> the only way to do DNS lookup on some specific type of records (mx or
>> srv records).
>>
>> I can provide details if you need to.
>
> Yes please!


What would you need ?
Should I put the resolver in debug mode and do many connects until I  
reproduce the problem ?
It happens on live system. Error seems to happens when a lot of  
different resolution are done at the same time.
The result is that tcp_connect seems sometime to fail with nxdomain,  
and the retry one second later works.

-- 
Mickaël Rémond
  http://www.process-one.net/



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080515/301b0ff4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080515/301b0ff4/attachment.bin>


More information about the erlang-bugs mailing list