Results 1 to 3 of 3

Thread: Programmatically edit DNS in Visual Basic 6

Threaded View

  1. #1

    Thread Starter
    New Member gdcats's Avatar
    Join Date
    Sep 2007
    Location
    Dubai UAE
    Posts
    5

    Programmatically edit DNS in Visual Basic 6

    Help guys, a code to programmatically alter (remove,insert) the DNS entries in TCP/IP. I made it work using the Registry but works only on my machine (ex. WshShell.regwrite "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters\Interfaces\{2FA7197E-C071-46B3-A75B-FAC5CDC49580}\NameServer", "192.168.1.1,192.100.112.10", "REG_SZ"), if I run the code on another machine it generates an error.

    Any other alternative?

    THanks in advance.
    Last edited by gdcats; Nov 11th, 2007 at 04:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width