[erlang-questions] Re: newbie having difficulty with inet_res:nslookup

Jeff Macdonald macfisherman@REDACTED
Sun Sep 13 21:17:43 CEST 2009

On Sun, Sep 13, 2009 at 11:43 AM, Gleb Peregud <gleber.p@REDACTED> wrote:

> I'd suggest rewriting lookup_mx/1 in "fail fast" way, i.e.:
> lookup_mx(Domain)       ->
>       {ok, #dns_rec{ anlist = Ans }} = inet_res:nslookup(Domain, 1, mx),
>       lists:map(fun parse_mx/1, Ans).

excellent. Thanks. Next is figuring out how to increase file handles
in Mac OS X and have Erlang use them.

Jeff Macdonald
Ayer, MA

More information about the erlang-questions mailing list