[erlang-bugs] : : inet_res:getbyname

Mikael Magnusson <>
Sat Sep 8 11:41:37 CEST 2007

Matthew O'Gorman wrote:
> Exactly, I do want to do a dns query on the srv, currently the only
> way i know to do that is using inet_res, which is deprecated and
> broken for everything but -name, if there is to be a replacement or
> there is another way to make it work I would appreciate knowing it.
> Mog

I'm able to use inet_res also on nodes with short names (-sname) if I 
call inet_db:add_resolv:


Btw, why not always use long node names (-name)?


More information about the erlang-bugs mailing list