mwalsh728
August 23rd, 2001, 02:52 PM
alright heavy-hitters, i got one for you.
i'm trying to manipulate the DNS settings on the local machine using an instance of Win32_NetworkAdapterConfiguration.
what i want to do is set the machine to obtain a DNS server automatically through visual basic. i was thinking that it might do this by default when you enable DHCP, but that doesn't seem to be the case.
there is a function called SetDNSServerSearchOrder() to set it to manual, passing the DNS IP address as parameters. but once the machine is set to manual, there doesn't seem to be any way to - programmatically - get it back to searching automatically.
EnableDNS() doesn't work because you need to specify addresses. i just want it to find the local network's DNS server on its own. ideally, it would be something like
Win32_NetworkAdapterConfiguration.setDNStoAuto()
any help would be appreciated. my email address is michaeljameswalsh@yahoo.com.....
thanks a bunch.
mjw
i'm trying to manipulate the DNS settings on the local machine using an instance of Win32_NetworkAdapterConfiguration.
what i want to do is set the machine to obtain a DNS server automatically through visual basic. i was thinking that it might do this by default when you enable DHCP, but that doesn't seem to be the case.
there is a function called SetDNSServerSearchOrder() to set it to manual, passing the DNS IP address as parameters. but once the machine is set to manual, there doesn't seem to be any way to - programmatically - get it back to searching automatically.
EnableDNS() doesn't work because you need to specify addresses. i just want it to find the local network's DNS server on its own. ideally, it would be something like
Win32_NetworkAdapterConfiguration.setDNStoAuto()
any help would be appreciated. my email address is michaeljameswalsh@yahoo.com.....
thanks a bunch.
mjw