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

Chandru <>
Mon Sep 14 00:03:52 CEST 2009


2009/9/13 Jeff Macdonald <>

> On Sun, Sep 13, 2009 at 11:43 AM, Gleb Peregud <> 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.
>
>
You could increase it using 'ulimit' before you start your erlang node.

cheers
Chandru


More information about the erlang-questions mailing list