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.

In some point of time (I don't know when...) the DNS on a Windows 2003 Server gets populated with all computers on Active Directory.

There is any way to repopulate it again? For instance, when changing the IP on a computer how to do to update DNS records? When dropping a computer, how to drop it from DNS Server?

Of course, a way is to do it by hand, but there is an automated way (say command line or menu option)?

EDIT: Robert Moir, Things I wish to do:

  • Cleanup DNS entries for old computer that does not exists (dead computers or/and active directory dropped).
  • Some computer have fixed (not DHCP) IP addresses (in our case we have computer on another building and for network provider reasons the DHCP is not working there fine, all buildings connect with VPNs). If we move a DHCP computer to another LAN wich requires fixed IP how can DNS get updated not by hand?
share|improve this question

5 Answers 5

This should happen automatically (for windows machines on your domain as long as 'register this connection's address in dns' is checked under dns tab). If you change the IP manually or if it receives a new IP via DHCP this should be automatic. You can delete them all from DNS and they will eventually all show back up.

As mentioned, ipconfig /registerdns will force registration, but your comment that it doesn't work "for a dropped and died computer" is confusing. If the machine is off the network or powered off then there is no way for it to register its address. Please provide more information if possible.

share|improve this answer

Active Directory information is not used to populate DNS because they are two different things doing two different jobs, even when DNS data is held inside AD.

To simply tidy up old DNS entries, you probably ought to look at this and also the comments others have made about getting DHCP updating DNS records too.

OK DHCP and the network system on Windows clients should update those as their IP address changes. If this isn't happening then check the settings on the DHCP server. You can force this to pass along changes to the DNS server itself if clients are not doing so.

If this isn't happening for devices with static addresses that you're already changing manually then ipconfig /registerDNS will do it, as already suggested. I know you said you didn't want a manual solution but if someone's already sitting there manually updating the ip address then for this one purpose it might well be easier to make an exception.

aging and scavenging of records on the DNS server should ensure that "crud" gets cleaned out eventually.

I don't think there's going to be one answer where you just tick one box on the server and all of this happens automagically without a hitch, because you're really talking about a few different things here.

share|improve this answer
    
I answered on the question (I hope!) –  FerranB Jun 18 '09 at 23:05
    
edited answer from old format (which asked for clarification of question) –  RobM Jun 18 '09 at 23:27

IPCONFIG /registerdns

will "try" to register the A and PTR records of the machine you are running this command on in the DNS servers the NIC is associated with.

share|improve this answer
    
For an droped and died computer does not work.. –  FerranB Jun 18 '09 at 21:46

The Microsoft DHCP server has an option to update DNS records when DHCP leases change. That is probably what you are looking for.

share|improve this answer

nltest /dsregdns run from a DC will tell that DC to register it's records. /dsderegdns will tell the DC to unregister it's records. If the DC is dead, you can't run "nltest" so there does not seem to be a utility to clean the dead DC's records out of DNS...

A DC's records are a lot more than what is registered with ipconfig /registerdns. A DC registers numerous service location records (SRV records) such as records with names starting with _ldap and _kerberos.

share|improve this answer

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.