Link to home
Start Free TrialLog in
Avatar of proskig
proskig

asked on

DNS API

There is Windows DNS API. I found MSDN documentation to be very obscure. I am wondering if anyone has a working example of DNS API. I am mainly looking for resolving name, which can have several IP addresses.

Thanks!
Avatar of jhance
jhance

gethostbyname() or the Windows specific WSAAsyncGetHostByName().
Avatar of Paul Maker
see

http://freespace.virgin.net/paul.maker/

in examples section i have a simple gethostname example that lists the ip addresses on a machine
Avatar of proskig

ASKER

Sorry,
I am looking for real DNS API, e.g. DNSQuery. gethostname does not support MX records and it always returns first entry in the host database, so it is virtually impossible to get multiple results for one name.
Avatar of proskig

ASKER

Sorry,
I am looking for real DNS API, e.g. DNSQuery. gethostname does not support MX records and it always returns first entry in the host database, so it is virtually impossible to get multiple results for one name.
ASKER CERTIFIED SOLUTION
Avatar of iarla
iarla

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of proskig

ASKER

Thanks!
I actually used previous version of this article and it was completely different - it was basically a port of BSD bind, but now  it uses Windows DNS API. This is what I needed.