
January 13th, 2004, 09:31 PM
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Change DNS Script
Hello
I'm trying to write a script that will change the DNS setting of the NIC card to X.X.X.16 where the X's are the first 3 octets of my current default gateway.
so if for example my Current default gateway (as assigned by DHCP) is 10.160.128.1 my DNS will become 10.160.128.16
I was trying to do this using Batch files and NETSH at first but to no avail.
Lately thinking about trying VB or Jscript or WSH or something
any ideas?
|