Need to remove one of two dns addresses
My windows 7 pc is configured to use two different DNS ip addresses. How can I remove one of these addresses without going into the local area connection properties?
edit hosts file, lmhosts file or other options?
Thanks
Bob
April 23rd, 2011 2:12pm
In a command prompt you can write:
netsh interface ip delete dns [name=]InterfaceName [addr=]{DNSAddress | all}
Full syntax here:
http://technet.microsoft.com/en-us/library/cc738592(WS.10).aspx#BKMK_7
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2011 3:28pm
It's ipv4 addressing so I have to specify ipv4? as in "netsh interface ipv4 delete dns" right
and also leave the "all" switch off since I just deleting one address. as in
"netsh interface ipv4 delete dns [name=]InterfaceName [addr=]DNSAddress"
Thanks for the reply!
Bob
April 23rd, 2011 10:20pm
ip=ipv4, ipv6=ipv6. I guess netsh has existed longer that ipv6 :)
The pipe, |, means either/or so yes, you should specify a specific address to delete and not use the "all" switch.
Your command line should look like this:
netsh interface ip delete dns <interface name> <dns to delete>
Free Windows Admin Tool Kit Click here and download it now
April 24th, 2011 7:10am