• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 481
  • 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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