The nsupdate command can be used to update dynamic DNS zones, e.g.

#nsupdate
> update add server1.in2nix.com 86400 A 192.168.2.3
>
>update delete server2.in2nix.com.
>
>update add 3.2.168.192.in-addr.arpa. 86400 PTR server1.in2nix.com.
>
>update delete 4.2.168.192.in-addr.arpa.
>

N.B. It seems that you have to hit return twice after entering each command to ensure the command is taken

Otherwise you can create a command file and supply this to the nsupdate command, e.g.

cat /var/tmp/dns.out
server 10.10.10.250
update add server01.justsomestuff.co.uk 3600 A 10.11.10.54
send

nsupdate -g /var/tmp/dns.out

Recent Changes

Contribute to this wiki

Why not help others by sharing your knowledge? Contribute something to this wiki and join out hall of fame!
Contact us for a user name and password