Sign in to follow this  

Winsock: Getting IP of DNS server

This topic is 3313 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm writing some test code for submitting various types of DNS requests as a learning experience, and I'd like to automatically determine the IP address of the name server. At work, I can send a DNS request to 255.255.255.255 and I get a reply back from our server which is running as a name server (Some varient of Windows Server). At home, I don't get any reply from the router (A Netgear router) unless I send the DNS request to it directly (EDIT: As verified by Wireshark). So my question is: How can I get the IP address of the DNS server(s) as shown by running ipconfig /all on the command prompt? I'm only interested in Windows for this, and XP / Vista, and in C++. Cheers, Steve

Share this post


Link to post
Share on other sites

This topic is 3313 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this