Christian
2004-04-14 15:53:50 UTC
Hello,
I want to query a DNS within a C program to get the mail server associated
to a domain name, ie, the equivalent of the command 'host -t mx
<domain_name>'.
I've had a look at the bind-utils sources, and also run 'host' under gdb but
giving that it runs multiple threads, i'm lost.
Can anyone point any explicit doc (that is, not the RFC 1035), or the
specific source files inside the bind-utils tree that manage the
request-response stuff ?
Thanks.
Christian.
I want to query a DNS within a C program to get the mail server associated
to a domain name, ie, the equivalent of the command 'host -t mx
<domain_name>'.
I've had a look at the bind-utils sources, and also run 'host' under gdb but
giving that it runs multiple threads, i'm lost.
Can anyone point any explicit doc (that is, not the RFC 1035), or the
specific source files inside the bind-utils tree that manage the
request-response stuff ?
Thanks.
Christian.