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
hash 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:
If you do not want your ipv4 to update, you may pass in the parameter
You can also use
Example:
Here are some common update URLs:
There are two exceptions when using wget method.
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.
Update all domains in your account
Update an alias
Custom
A1 Hybrid Box
Apple Airport
Arris
Bintec
BT Smart Hub
Cisco Router
DD-WRT
D-Link DSR-250N
Dovado
DrayTek
E-Lins
Express VPN
HUAWEI HG 533/520v
HG8245/8045/8346M
FreeNAS
Fritzbox
IC Realtime
Maxis AC1200
Mikrotik
MultiTech
MOFI4500
Ooredoo
Open Wrt
OPNsense
pfSense
pfSense (IPv6)
QNAP
Raspberry Pi
Sagemcom
Synology NAS
Technicolor TG582n
Technicolor TG588
Technicolor TG789
TELTONIKA
Thomson TG585v7
Tomato USB
Tilgin
TP-Link ER605
TrueNAS
Ubiquiti EdgeRouter
WatchGuard Firebox
Windtre
ZTE
ZyWALL-USG50
Zyxel 5501
Zyxel-C1100Z
Zyxel VMG3925
Zyxel VMG3927-T50K