inet_dns module
Magnus Fröberg
magnus@REDACTED
Thu Dec 2 13:22:42 CET 1999
Ulf Wiger wrote:
>
> On Thu, 2 Dec 1999, Magnus Fröberg wrote:
>
> magnus>Instead of creating the dns_rec tuple you should include
> magnus>inet_dns.hrl and use the record definitions. You have to
> magnus>include it as:
> magnus>-include("$ERL/lib/kernel-$KERNEL_VSN/src/inet_dns.hrl") as
> magnus>the inet_dns module was not intended for use outside the
> magnus>kernel application (e.g. you cant find a man-page for it).
> magnus>(Note: $ERL above is your erlang install directory and
> magnus>$KERNEL_VSN is the version of the kernel application in your
> magnus>installation)
>
> Magnus, wouldn't it be better to use
>
> -include_lib("kernel/src/inet_dns.hrl").
>
Oops;-) Of course, thats the way to do it.
/Magnus
--
Magnus Fröberg Tel: +46 (0)8 692 22 06
Bluetail AB Email: magnus@REDACTED
Hantverkargatan 78 WWW: http://www.bluetail.com
SE-112 38 Stockholm, SWEDEN
More information about the erlang-questions
mailing list