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!
Thanks!
gethostbyname() or the Windows specific WSAAsyncGetHostByName().
see
http://freespace.virgin.net/paul.maker/
in examples section i have a simple gethostname example that lists the ip addresses on a machine
http://freespace.virgin.net/paul.maker/
in examples section i have a simple gethostname example that lists the ip addresses on a machine
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.
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
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.