C
Chris Morse
Does anyone know how to determine the DNS servers for a client
machine? I'd like this to work on any .NET enabled platform, which
basically means everything except Windows 95.
Researching this is a nightmare. There are many place to look
depending on the machine's configuration. On Windows 2000, there's
one place if you have the TCP/IP settings specified, another place if
you're using DHCP. On Windows 98SE, the only place I found a
reference to the DNS IP address, in the registry, was in a custom
place defined by my portable's PCMCIA card driver.
I've heard of an undocumented function in WinSock called WsControl(),
which apparently is used by the "winipcfg" utility. Not sure if
"ipconfig" on NT/2000 uses that too, but probably does.
I found this info on this page:
http://homepages.nildram.co.uk/~phekda/richdawe/dl/ipdata.txt
I'd like my program to automatically detect the current DNS servers
configured for the client machine. Certainly there is a way to do
this, no?!
// CHRIS
machine? I'd like this to work on any .NET enabled platform, which
basically means everything except Windows 95.
Researching this is a nightmare. There are many place to look
depending on the machine's configuration. On Windows 2000, there's
one place if you have the TCP/IP settings specified, another place if
you're using DHCP. On Windows 98SE, the only place I found a
reference to the DNS IP address, in the registry, was in a custom
place defined by my portable's PCMCIA card driver.
I've heard of an undocumented function in WinSock called WsControl(),
which apparently is used by the "winipcfg" utility. Not sure if
"ipconfig" on NT/2000 uses that too, but probably does.
I found this info on this page:
http://homepages.nildram.co.uk/~phekda/richdawe/dl/ipdata.txt
I'd like my program to automatically detect the current DNS servers
configured for the client machine. Certainly there is a way to do
this, no?!
// CHRIS