how to obtain MX records for a domain

Barry Margolin barmar at
Sat Jun 11 01:09:07 UTC 2005

In article <d8d963$2jl8$1 at>, frank at nfurter.spam wrote:

> I want to obtain MX records for a domain, just as host.c does it. Is
> there a less sophisticated example using dns_resolver functions,
> because host.c / dighost.c apparently are not to be used as an
> example, and they are more sophisticated than I require. Thanks.

I think the chapter on using the resolver library in the DNS & BIND book 
has an example of doing precisely this.

Barry Margolin, barmar at
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

More information about the bind-users mailing list