Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 489
  • Last Modified:

is there a script to change dns settings in vb6

I would like to use a script to change the dns server settings of a windows computer.  Does anyone know how I can do this using vb6?
0
al4629740
Asked:
al4629740
  • 3
  • 2
1 Solution
 
advfinanceCommented:
You can use netsh to change DNS settings.

For example, to add a DNS server to the "Local Area Connection" interface.

netsh interface ip add dns "Local Area Connection" 194.168.4.100

Open in new window

0
 
al4629740Author Commented:
Can I run this script from vb6?
0
 
advfinanceCommented:
You could shell it.

Shell "netsh interface ip add dns ""Local Area Connection"" 194.168.4.100"

Open in new window


--
Chris
0
 
al4629740Author Commented:
It needs to be done in vb6 through an app.  After they uninstall the app, it will need to reset the settings back to original.
0
 
advfinanceCommented:
Call it from your installer?

--
Chris
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now