Mass re-registration of DNS..

hboogz

Junior Member
Dec 10, 2006
23
0
0
I had to load a backup of a Forward lookup zone for windows 2003.

As a result, i have some records that are not updated -- how can i invoke all clients ( winxp, win2k ) to re-register their DNS ?

 

mcmilljb

Platinum Member
May 17, 2005
2,144
2
81
A client re-registers it's dns every time it renews its dhcp lease. I also read it does it every 24 hours (not 100% sure about this). Of course you can manually force a client to re-register with the command 'ipconfig /registerdns'. I'm not an expert on AD so I'm not sure how you could push that out to every client. Maybe a script with a GP?
 

drebo

Diamond Member
Feb 24, 2006
7,034
1
81
Add an "ipconfig /registerdns" to their logon script for a couple of days.

Alternatively, if you have the rights for it, you can execute applications on their system and could remotely execute that on their system. This would have to be done one at a time, though, as far as I know.
 

hboogz

Junior Member
Dec 10, 2006
23
0
0
I'm pretty sure i can do it using psexec, but am unsure on syntax since i'm bad with writing code. I imagine if i create a computerlist.txt for all the computers i want to refresh, supply proper credentials and run it.... i just dont know the right command syntax for psexec to run "ipconfig/registernds"
 

mcmilljb

Platinum Member
May 17, 2005
2,144
2
81
Originally posted by: hboogz
I'm pretty sure i can do it using psexec, but am unsure on syntax since i'm bad with writing code. I imagine if i create a computerlist.txt for all the computers i want to refresh, supply proper credentials and run it.... i just dont know the right command syntax for psexec to run "ipconfig/registernds"

http://technet.microsoft.com/e...nternals/bb897553.aspx

Looks like it can be pretty simple using psexec.

Something like this: 'psexec \\computername ipconfig /registerdns'
 
Mar 26, 2008
148
0
0
Looks like it can be pretty simple using psexec.

Something like this: 'psexec \\computername ipconfig /registerdns'

That looks like you'd have to do each box one at a time. If there isn't a rush add it to the users login scripts as suggested by the other poster.

 

mcmilljb

Platinum Member
May 17, 2005
2,144
2
81
Originally posted by: snikt
Looks like it can be pretty simple using psexec.

Something like this: 'psexec \\computername ipconfig /registerdns'

That looks like you'd have to do each box one at a time. If there isn't a rush add it to the users login scripts as suggested by the other poster.

You can use commas to make a list of names you need to do. The only problem is you will have to use an ip address because you won't be able to rely on that dns server for correct name resolution.