Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Ok sometime ago I changed my ip address to a static one because I was bored and I wanted to learn more about static ips. I am running windows xp. My laptop works find on the network that i set up a static ip address, but when i go to another network, the incorrect dns servers are being used. When I enter the option to get a dns server automatically, the internet connection works but only for a short time. After that the dns servers resets to the one i entered manually on a previous network.

I did this by going to Network Connection->Right Click Local Area Connection and go to properties->Select TCP/IP -> then click the Properties button.

At this point i am given the option to Obtain an ip address or obtain and address automatically. My question is how do I resolve this problem of the dns server reseting to the previous one.

share|improve this question

migrated from serverfault.com Jan 21 '11 at 0:12

This question came from our site for professional system and network administrators.

4  
Have you considered just manually specifying a DNS server that is available everywhere? Perhaps Google (8.8.8.8,8.8.4.4) Manually setting an IP, and not manually setting a DNS servers is extremely uncommon, and pointless IMHO. BTW, statically setting an IP address on a laptop is also extremely silly. –  Zoredache Jan 20 '11 at 23:44
    
I did manually set the DNS servers, when i set the ip address. Also, Google's DNS server appear not to be working. Could it be because of a network firewall? –  Steffan Harris Jan 20 '11 at 23:48
    
Yes, if you can't get to the Google DNS servers there is probably a firewall issue somewhere. –  Zoredache Jan 21 '11 at 0:21
    
Could it be that the DNS servers are static?? If so how would change back to dynamic DNS servers assigned by the network? –  Steffan Harris Jan 21 '11 at 0:23
    
Can you please clarify your question with more details? Like "The default distributed DNS is X, the DNS that I want to use is Y. If I change the settings to A, then it loads X/Y; but when I change the settings to B, then it loads X/Y which is not what I want." –  Tom Wijsman Feb 4 '11 at 14:25

5 Answers 5

up vote 6 down vote accepted
+50

Make sure there are no additional DNS servers in the advanced section of TCP/IP settings. You can see it the button at the bottom right corner of John T's Picture.

enter image description here

share|improve this answer

Try setting the DNS servers to also be obtained automatically:

alt text

You are likely viewing cached pages on other networks which is why it appears to work for a few seconds. If you have internal DNS servers specified, then you migrate to another network with DNS servers that are addressed differently, you will not be able to access your previous DNS servers unless they are external to the LAN.

share|improve this answer
    
Ok this is what I have been doing, but after after a while it switches back to another previous DNS servers that i had once specified. And as a result, I am unable to access the web. –  Steffan Harris Jan 27 '11 at 14:54

You should first verify the settings of your network adapter's Properties / TCP/IP Properties / Advanced / DNS tab. It is possible that you have configured a DNS domain or forwards that correspond to your work network, so deleting this may fix the problem and return you to the purely automatic DHCP.

Switching between configurations may also confuse Windows Networking.

See this article :
How to use the Alternate Configuration feature for multiple network connectivity in Windows XP.

This article describes how to use the Alternate Configuration functionality to establish multiple-network connectivity. If you are a mobile computer user, you can use the Alternate Configuration functionality to maintain seamless operations on both office and home networks without having to manually reconfigure TCP/IP settings. This feature specifies that TCP/IP uses an alternative configuration if a DHCP server is not found.

With the Alternate Configuration, all you have to do is wait 30-60 seconds and when the machine doesn't find a DHCP server from the default settings, it will switch over to the Alternate Configuration.

However, if one or both of the locations is a domain, then you have a different problem and should probably look into a third party tool to make it easier.

share|improve this answer

One option is to set a public internet dns server instead of an internal dns server for your static dns entry. Options include Google (8.8.8.8/8.8.4.4), OpenDNS, and many others. The downside here is that you won't be able to use dns to resolve names on the local networks, only the public internet.

Mostly, though, you just shouldn't set static IPs on portable devices. Static IPs are for devices that are more, well, static... things like printers and servers. If you want a consistent IP on your internal network, the better way to accomplish that is to use a dhcp reservation.

share|improve this answer

Perhaps you have an antivirus program or malware that is changing those settings behind your back. Check services.msc for anything that might be managing your network or trying to protect you. Try temporarily disabling any "Network" protection on your antivirus, or seeing if you can go into Safe Mode with Networking and not experience your issue.

Failing that, I'd completely reset the network adapter by removing it from the Device Manager, and then letting it autodetect/reinstall on the next reboot.

EDIT: Just realized you were using XP. Don't know if XP has a "Safe Mode with Networking" option in its F8 menu...

share|improve this answer
    
I figured out the problem, I was running a program called DynDns which used its own DNS servers. Unfortunately these servers weren't set up properly. Whenever I would try to obtain an ip address and DNS server automatically, The program would switch back to the IP address of the DynDns servers. –  Steffan Harris Feb 10 '11 at 14:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.