RE: DNS Client

Josh Cohen (joshco@microsoft.com)
Thu, 31 Dec 1998 04:00:20 -0800


both the winsock and unix gethostbyname() calls are woefully
deficient for what you want.
Try the berkely libresolv code...

> -----Original Message-----
> From: Joseph S. Barrera III [mailto:joe@barrera.org]
> Sent: Thursday, December 31, 1998 12:47 AM
> To: The Jester
> Cc: fork
> Subject: Re: DNS Client
>
>
> >I found lots of programs to let you do look ups from a
> command line. Bu I
> >need an interface I can call from my program to retrieve svr
> and possibly
> >naptr records. Is my only hope to dig through bind (never touched it
> >before) and try to extract the code that does look ups?
>
> You might also check out
> http://www.fuhr.net/users/mfuhr/perldns/ (which I
> found via http://www.acmebw.com/askmrdns/00246.htm)
>
> I don't know Perl (shame on me) but the naptr.pm module is
> only 112 lines
> (not counting the appended man page) so with a little work
> you ought to be
> able to glean something useful from it even if you (also)
> don't know Perl.
>
> Best wishes,
>
> - Joe
>