Internet dropping due to random DNS IP change

My internet connection randomly drops.  I have 6 computers and one voip running on my network.  When the internet drops my DNS is changed from 192.168.1.1 to 192.168.2.1  The subnet mask doesn't change at 255.255.255.0.  When it does this I can still access my router at 192.168.1.1 but I cannot see anything change with the internal settings.

 The only way for me to correct this is to flushdns and release and renew the IP.  All machines are running XP PRO and the router is a Linksys WRTN330N Gigabit Gaming Router.

Here's the kicker...it will not do it for all computers at the same time.  My laptop will go down with the new DNS server and the other laptop (siting across the desk from me) will still be surfing just fine.  This will happen regardless of being wired or wireless.

I know it is the DNS IP issue creating the internet drop because I can type in the IP for google and will get google to pop up on my screen.  I just would like to know how to stop it from occuring in the first place.
bobbielindAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

maxis2cuteCommented:
if you are sure it is a dns issue and not any other than set the dns in the ip properties of the nic cards.  

from command prompt, type in  netsh interface ip set address name="Local Area Connection" static 192.168.1.XXX  255.255.255.0 192.168.1.1

the xxx is the ip address of the computer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pwrBallCommented:
You could just assign the DNS in the tcp/ip settings of each box manually to 192.168.1.1.
Check if there is a firmware upgrade to your router as well from Linksys.
0
bobbielindAuthor Commented:
If I'm on DHCP will setting a static DNS mess with the router settings?
0
What were the top attacks of Q1 2018?

The Threat Lab team analyzes data from WatchGuard’s Firebox Feed, internal and partner threat intelligence, and a research honeynet, to provide insightful analysis about the top threats on the Internet. Check out our Q1 2018 report for smart, practical security advice today!

pwrBallCommented:
No, shouldn't mess up anything.  The static setting will override the dynamic.
0
maxis2cuteCommented:
Now just remember the idea i gave you can be used for one computer or 10,00000 computers.  all you have to do is cut and paste.  You can use it in a script or keep on a shared drive and just change the first ip address.

Although it may seem more complicated to start, for more than one machine the command prompt method is always the easiest to use.

the command to just change the dns is               add dns "Local Area Connection" 192.168.1.1
0
maxis2cuteCommented:
sorry try this command i did not give the full command
netsh interface ip set dns "Local Area Connection" static 192.168.1.1
0
bobbielindAuthor Commented:
Thank you very much for your responses.  I will award partial credit to both of you as I used both solutions.  Manually changing worked for my computer and the script workded for the rest of the computers.  

Thanks again for your quick response to this problem.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DNS

From novice to tech pro — start learning today.