Page 1 of 1 1
Topic Options
#121048 - 2004-06-10 07:48 PM how to remove a DNS entry
dmarussi Offline
Fresh Scripter

Registered: 2004-05-11
Posts: 15
Is there anyway to remove a DNS entry on windows 2000 and XP pro boxes thru a kix script? Specifically I need the second entry deleted. Thanks in advance for any help...
Top
#121049 - 2004-06-10 08:00 PM Re: how to remove a DNS entry
dmarussi Offline
Fresh Scripter

Registered: 2004-05-11
Posts: 15
ps...in case i've confused anyone all of these pc's have statically assigned ip's and DNS.
Top
#121050 - 2004-06-10 08:23 PM Re: how to remove a DNS entry
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
You might take a look at CheckNICs() in the UDF forum.

Also, I believe you might have some luck with Netsh.exe as well.

Top
#121051 - 2004-06-10 10:54 PM Re: how to remove a DNS entry
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
If you were to listen to M$, they would tell you to use NetSH.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#121052 - 2004-06-11 04:28 AM Re: how to remove a DNS entry
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
I decided to see if I could figure out the syntax of Netsh. I believe all you need to do is change the IP address below to match the IP of the server you want to delete.

Code:
 
shell '%compspec% /c netsh interface ip delete dns "Local Area Connection" 192.168.0.2'


Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.058 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org