Trisha Shetty (Editor)

Nsupdate

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

nsupdate is a computer network maintenance utility used by network administrators to request the name server of a DNS zone to update its database. The name server might be local to a domain or, with appropriate authentication and permission provided by DNSSEC, an internet name server.

Contents

BIND 8 and later supports this feature.

Example

This example removes the nameserver address record for oldhost from domain example.com and replaces it with a new address record with a 24-hour time to live (86,400 seconds). The new host's IP address is 192.168.254.117.

# nsupdate > server ns.mydns.com > update delete oldhost.example.com. A > update add newhost.example.com. 86400 A 192.168.254.117 > send > quit

Example 2

Here is an example using a TSIG key, adding an A record for host host1.my.example.com with IP address 10.20.30.40:

# nsupdate -k /path/to/file-is-rndc.key > server server1.example.com > zone my.example.com > update add host1.my.example.com. 3600 A 10.20.30.40 > send > quit

References

Nsupdate Wikipedia