Nsupdate

From Wikipedia, the free encyclopedia

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.

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 A and PTR records 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
> zone 30.20.10.in-addr.arpa.
> update add 40.30.20.10.in-addr.arpa. 7200 PTR host1.my.example.com.
> send
> quit

See also

  • Daemon (computer software)

External links

References


This article is issued from Wikipedia. The text is available under the Creative Commons Attribution/Share Alike; additional terms may apply for the media files.