UpdateDNS
21 Nov 2009 13:57 UTC 2009325+1357 UTC

Update DNS on meridian and sextant

Update one or more DNS hostname/IPs on our nameservers.

Rough Draft, needs editing and verification

Say you want to add/modify a DNS hostname. Because of the ip modem updates, you can't simply nuke /var/named/db.cbi.tamucc.edu, or run make dns (sysadmin).

Here is one method that appears to work (assume you are logged in to meridian):

  1. rndc freeze cbi.tamucc.edu
  2. rndc thaw cbi.tamucc.edu - this should apply all journal updates to the db.cbi.tamucc.edu zonefile
  3. /etc/init.d/named stop
  4. Make your changes to db.cbi.tamucc.edu (and db.165.95.1 if necessary) - make sure to increase the serial number!
  5. /etc/init.d/named start - restart DNS
  6. rndc notify cbi.tamucc.edu - this may be necessary as well--can't remember ATM
  7. [Possibly] rndc refresh cbi.tamucc.edu - on slave system (sextant)

Crap! I don't know what command caused the slave (sextant) to import its journal updates. It may have been one (or none) of the following commands:

  • rndc dumpdb cbi.tamucc.edu
  • rndc flush
  • rndc retransfer cbi.tamucc.edu <- this one seemed to do it for me (didn't try the others) ~jdavis
  • rndc reload

Good luck.

Now test your updates:

host <new_modified_hostname> meridian
host <new_modified_hostname> sextant
host <new_modified_ip_address> meridian
host <new_modified_ip_address> sextant
Page last modified on October 13, 2009, at 03:01 PM