troubleshooting Question

Need Registry Script to change DNS Server Preferred & Alternate IPs

Avatar of PMORRIS
PMORRISFlag for United States of America asked on
DNSTCP/IPInternet Protocols
4 Comments4 Solutions1423 ViewsLast Modified:
I have an application that only runs when I remove static DNS Server IPs from the Local Area Connection Properties. The app actually launches, but after entering login info, it returns a connection error. Only after changing the DNS to automatic will it work properly. (If I then immediately set DNS back to static, the app works normally if I exit the program and launch it again.)

I'd like to crete a registry script that would set DNS to automatic, then reset it to specific primary and secord IPs. But most importantly, the script should allow for the "Apply" or "OK" function, so that the settings are refreshed at the completion of the script.

Anyone with any ideas as to why this problem may be occurring, or would anyone care to share a script that would accomplish the above? Thanks.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 4 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros