Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to get the Windows XP client machines in my network to dynamically update their DNS A records. The network is an AD domain running on Windows Server 2003 R2 servers with Win XP SP3 clients. Some machines already have the "Register this connection's addresses in DNS" check box checked and sucessfully update the DNS server. But some machines do not have this check box set and I need to set this.

I read that this is possible using a GPO and I enabled the following:

Computer configuration -> Administrative templates -> Network -> DNS client

  • Primary DNS Suffix
  • Dynamic Update
  • DNS Servers
  • Connection-Specific DNS Suffix
  • Register DNS records with connection-specific DNS suffix

and where required, entered the relevant parameters. Running rsop.msc in the client machines shows that the GPO has been applied. The client machines have been rebooted.

The DNS server allows "Nonsecure and secure" dynamic updates and is only accessible from our internal network.

But, the "Register this connection's addresses in DNS" check box is not set. And the hosts without this set are not updating their DNS A records. Per another suggestion in a web site, i tried running "ipconfig /registerdns", but it does not add the DNS A record.

Any advice on what I am doing wrong here would be gratefully accepted :-) Thank you.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

There isn't a group policy setting to do what you're trying to do-- you're going to have to use a script.

First, I'd recommend reviewing the "Explain" tab for the settings you described above. You'll see that none of the settings actually turn on the registration behaviour you're looking for.

Assuming your machines get DNS settings from DHCP, and assuming that you don't mind this setting set back to the stock setting on all their network interfaces, assign the following in a Startup Script to the affected computers:

for /f "usebackq tokens=3* delims= " %%i in (`netsh interface ip show dns ^| find "Configuration for interface"`) do netsh interface ip set dns name=%%j source=dhcp primary

That will set the DNS client to get its address from DHCP, and reset the stock registration setting on all network interfaces on a Windows XP machine.

(An aside: You ought to figure out how your users changed that setting in the first place and stop them. It sounds like you have people who have 'Administrator' rights who shouldn't.)

share|improve this answer
    
Sir, thank you for a very thorough and accurate reply. I am using static DNS, so I had to modify your script a bit, otherwise it was all OK. We recently moved to an AD environment, and we are in the process of integrating these Win XP computers. That's why they have inconsistent settings. Thank you again for your help. –  ChamaraG Jun 23 '09 at 18:42
    
No problem! Glad I could help you out. –  Evan Anderson Jun 23 '09 at 18:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.