get DNS server name automatically

1 view
Skip to first unread message


Jul 19, 2004, 6:33:58 PM7/19/04
Hi all,

Does anyone know an API function or any other way to get the DNS
server name or IP automatically in a windows application?. I actually
need the IP but if i have the name i could get it, the problem is i
dont have the name, so how to get it?

thanks for your help!


Jul 26, 2004, 3:27:14 PM7/26/04
to (lucy) wrote in message news:<>...

you can use GetNetworkParams() though it works for Windows XP,Windows
2000 Professional,Windows Me,and Windows 98,Windows Server 2003 and
Windows 2000 Server only. Anyone knows another function for other
Windows operative systems?
good luck!

Reply all
Reply to author
0 new messages