Dynamic DNS (or DynDNS in short) allow users to point a domain to dynamic IP address (IP address that periodically changes).
Activating DynDNS
- Log in to the WebAdmin
- Click on the top right on your username and select Security and Login
- Go to the section API Authentication and select “Generate new API access”
4. Select the option DynDNS and click the button Generate new API access to confirm
Hned poté uvidíte, že Váš přistup je aktivní. Vedle něj je možnost zkopírovat Identifikátor a Tajný kód
Connecting
ddclient
To connect your domain you can use any program that supports DynDNS2 connection, like DDclient, which is the most popular option for Linux. It can be installed trough distribution package: sudo apt install ddclient
for any Ubuntu-based system.
You can set up the connection as follows:
Use these following settings:
Dynamic DNS service provider: Other
Dynamic DNS update protocol: dyndns2
Username: Identifier
Password: Secret
IP address discovery method: Web-based IP discovery service
Alternatively you can add the following code to the file /etc/ddclient.conf
# Configuration file for ddclient
# Web is used to look up current IP address
use=web
# Configuration of server for Websupport
protocol=dyndns2
server=dyndns.websupport.cz
# Yourd DynDNS login credentials - identifier and secret key
login=IDENTIFIER
password=SECRET
# Domain/s to update
exampledomain.cz
Curl
It is also possible to update connection via CURL call. In this case you can use the following code:
curl -u IDENTIFIER:SECRET "https://dyndns.websupport.cz/nic/update?hostname=EXAMPLEDOMAIN.CZ&myip=IPADDRESS"