Wget is a non-interactive commandline tool, so it may easily be called from scripts, cron jobs etc. It can be used on Linux or freeBSD based platforms like RaspberryPi, OS X and Linux machines.

There are two exceptions when using wget method.

  • Wget does not support basic authentication embedded in URL so you need to pass in the password (or MD5 /SHA256 of the password) as a query string parameter.
  • URL should be enclosed in double quotes otherwise the parameters will not be sent by Wget.

  • Example:
    wget "https://api.dynu.com/nic/update?hostname=example.dynu.com&myip=198.144.117.32&myipv6=2604:4400:a:8a::f4
    &username=someusername&password=somepassword"


    If you do not want your ipv4 to update, you may pass in the parameter myip=no. Similarly, if you do not want your ipv6 to be updated, you may pass in the parameter myipv6=no. For myip and myipv6 paramater, you can pass in =no, =ipaddress or do not pass in the parameter at all.

    You can also use -4 or --inet4-only to force an ipv4 connection and similarly, use -6 or --inet6-only to connect wget to ipv6 addresses. This is particularly useful if you do not pass in the myip parameter or use the special IP of 10.0.0.0 to set the updated IP to the IP address from which the request originates. Below is an example of updating the hostname to only the current IPv4 address.

    Example:
    wget -4 "https://api.dynu.com/nic/update?hostname=example.dynu.com&myip=10.0.0.0&myipv6=no
    &username=someusername&password=somepassword"


    Here are some common update URLs:

    Update one domain name

  • Non SSL: http://api.dynu.com/nic/update?hostname=example.dynu.com&password=PASSWORD
  • SSL Format: https://api.dynu.com/nic/update?hostname=example.dynu.com&password=PASSWORD

  • Update all domains in your account

  • Non SSL: http://api.dynu.com/nic/update?username=USERNAME&password=PASSWORD
  • SSL Format: https://api.dynu.com/nic/update?username=USERNAME&password=PASSWORD

  • Update an alias

  • Non SSL: http://api.dynu.com/nic/update?hostname=example.dynu.com&alias=Alias&username=USERNAME&password=PASSWORD
  • SSL Format: https://api.dynu.com/nic/update?hostname=example.dynu.com&alias=Alias&username=USERNAME&password=PASSWORD
  • For more information on update URLs and methodology, you may refer to the IP Update Protocol page.
    Loading...