Use the Simply.com DDNS-service to keep a DNS record, on your domain, updated with your current IP-address.
Use the following syntax to call the DDNS Service.
https://api.simply.com/ddns.php?apikey=[APIKEY]&domain=[DOMAIN]&hostname=[HOSTNAME]&myip=[IP]
apikey | Required | The API key for the Simply.com account. Found in our controlpanel. |
---|---|---|
domain | Required | The name of the domain you wish to update. Should be in punycode format. |
hostname | Required | The name of the A record you wish to update. |
myip | Optional | The IP-address to set the DNS record to. If this field is not the provided the IP of the client (REMOTE_ADDR ) is automatically used instead. |
dnserr | Something went wrong |
---|---|
nochg | The record is already set to the IP given. |
badauth | Invalid login |
abuse | The record has been updated/changed too many times in a given period. |
good | The record has been updated |
Use the following curl command to set home.example.com
to the external IP of the requesting client:
# curl -s -L "https://api.simply.com/ddns.php?apikey=APIKEY&domain=example.com&hostname=home"
You can set this command to run in a crontab, on a local machine, every 15 minutes or so.