On 6/28/18, jungle Boogie <jungleboog...@gmail.com> wrote:
>
> 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!

Indeed.

So can you write up a little subroutine to parse the binary DNS reply
and extract the name of the MX host for us?

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to