Example 1 Using nsupdate Interactively To Change an IP Address NOTE: for Linux - use FQDN for entries The following example shows the interactive use of nsupdate to change an IP address. It deletes any existing A records for a domain name and then inserts a new address. Since no prerequisites are specified, the new record will be added even if there are no existing records to delete. example$ nsupdate >update delete test.example.com A >update add test.example.com 3600 A 10.1.1.1 >send >quit Example 2 Using nsupdate Interactively to Add a CNAME (Alias) In the following example, a CNAME (alias) is added to the database only if there are no existing A or CNAME records for the domain name. example$ nsupdate >prereq nxrrset www.example.com A >prereq nxrrset www.example.com CNAME >update add www.example.com 3600 CNAME test.test.com >send >quit Example 3 Using nsupdate Interactively With a Key In the following example, nsupdate is signed with the key mykey, which is located in the directory /var/named/keys. example$ nsupdate -k /var/named/keys:mykey >update add ftp.example.com 60 A 192.168.5.1 > # # when doing non-vcs nsupdate, use FQDN for A records # # update add vcs-test-cname.mydomain.com 300 CNAME systemx.mydomain.com /opt/VRTSvcs/bin/DNS/nsupdate >update delete vcs-test-cname.mydomain.com CNAME >update add vcs-test-cname.mydomain.com 300 CNAME systemx >update add testname.mydomain.com 86400 CNAME testname-n-vip >send >quit