NSUpdate NSUpdate

NSUpdate is used to submit Dynamic DNS Update requests as defined in RFC 2136 to a name server. You can use nsupdate to update your free dynamic DNS hostname with Dynu.

To use nsupdate obtain the MD5 based transaction signature's shared secret from the API Credentials area of the Control Panel.

Transaction Signature

You can do the update through the command line or by using a script which runs on a regular basis.

Below is an example where the update is performed through the command line for domain name test.mywire.org. The update server api.dynu.com auto-detects the IPv4 or IPv6 address from which the update originates. The key czNhTUdVY0E= should be replaced with the MD5 shared secret for your account.

# nsupdate
> server api.dynu.com
> zone test.mywire.org
> key hmac-md5:test.mywire.org czNhTUdVY0E=
> send


Below is an example where the update is perform through the command line for domain name test.mywire.org. The IPv4 and IPv6 addresses are specified through the A and AAAA update records.

# nsupdate
> server api.dynu.com
> zone test.mywire.org
> update add test.mywire.org 180 A 93.151.158.15
> update add test.mywire.org 180 AAAA 2608:c07:3010::98
> key hmac-md5:test.mywire.org czNhTUdVY0E=
> send


Below is a shell script which utilizes nsupdate to update the IPv4 and IPv6 addresses for domain name test.mywire.org.

#!/bin/sh

nsupdate <<EOF
server api.dynu.com
zone test.mywire.org
update add test.mywire.org 180 A 72.125.119.19
update add test.mywire.org 180 AAAA 2608:c07:3010::98
key hmac-md5:test.mywire.org czNhTUdVY0E=
send
EOF


For more information on free dynamic DNS update URLs and methodology, you may refer to the IP Update Protocol page.
Loading...