On 28 June 2018 at 12:07, Richard Hipp <d...@sqlite.org> wrote:
> On 6/28/18, jungle Boogie <jungleboog...@gmail.com> wrote:
>> Does this help?
>> http://man.openbsd.org/man3/getrrsetbyname.3
> That seems to be an OpenBSD-only library function.  So, no, it doesn't
> really help.
> Does OpenBSD have req_query() at least?  I suppose I could write my
> own DNS record parser.  (sigh...)


res_query, res_search, res_mkquery, res_send, res_init, dn_comp, dn_expand —
resolver routines

The res_query() function provides an interface to the server query
mechanism. It constructs a query, sends it to the local server, awaits
a response, and makes preliminary checks on the reply. The query
requests information of the specified type and class for the specified
fully qualified domain name dname. The reply message is left in the
answer buffer with length anslen supplied by the caller. Values for
the class and type fields are defined in <arpa/nameser.h>.

I think that's what you want!

> --
> D. Richard Hipp
> d...@sqlite.org

inum: 883510009027723
sip: jungleboo...@sip2sip.info
fossil-users mailing list

Reply via email to