Update a hostname into a dynamic BIND9 zone.
On the host: install 'nsupdate'
On the server: configure a dynamically updatable zone, you can google for instructions, or check this page (in Spanish only sorry): http://cagnazzo.me/drupal/node/53
Edit the top-level variables:
SERVER=<your DNS server>
ZONE=<your dynamically updateable zone>
HOSTNAME=<set your hostname>|$(hostname)
./dyn-update-bind.sh
dig $SERVER