Solved

Temporarily change dns

Posted on 2014-03-03
3
134 Views
Last Modified: 2014-03-04
Is there a way to change the dns server of a workstation using vb6?
0
Comment
Question by:al4629740
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Assisted Solution

by:sarvjita
sarvjita earned 166 total points
ID: 39902513
0
 
LVL 27

Assisted Solution

by:skullnobrains
skullnobrains earned 167 total points
ID: 39902591
no idea how you change a registry entry in vb6, but you probably either know or can find out easily or alternatively can spawn a regedit command that does the same.

the registry entry that holds dns servers is :
HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\NameServer

several nameservers can be provided in a space-separated list
0
 
LVL 11

Accepted Solution

by:
Manjunath Sullad earned 167 total points
ID: 39902682
Generally script will update the below registry path for DNS updation,

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces

Go through below Technet link and modify your script according to your requirement.

http://technet.microsoft.com/en-us/library/ee692588.aspx

http://social.technet.microsoft.com/Forums/scriptcenter/en-US/af5cb843-49c0-44d9-8355-d7589fd25ab0/need-a-script-to-change-tcpip-dns-settings-parameters?forum=ITCG
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question