Docker image to update DNS entries at one.com to your current public IP address.
440
Source code: https://github.com/PeterHaislund/com.haislund.docker.onecomddns
Docker image that update DNS values at One.com to the current detected IP address.
Logs are written to /data/status.log so mapping the /data directory to the Docker host might be a good idea.
Configuration is done in a config file.
The easiest way to get started is to create the container and change the default config file afterwards.
The config file is located in /data/config.json, so mapping the /data directory to the Docker host is highly recommended to avoid loosing any changes to the default config. By using the config file it is possible to update multiple DNS entries.
A small example of a config:
{
"publish_interval": "3600",
"log_size": "1000",
"onecom": {
"user": "email",
"password": "password"
},
"records": [
{
"domain": "mydomain.com",
"subdomains": [
{
"name": "subname"
}
]
}
]
}
Seconds between checks whether the current IP has changed
Lines to keep in the log file
Username (mail) used to log into one.com
Password used to log into one.com
List of domains to update
Name of a domain to update
Sub-domain to update
Example of creating/running the container:
docker image pull peterhaislund/onecom_ddns
docker create -e TZ=Europe/Copenhagen -v /volume1/docker/onecom_ddns:/data --name onecom_ddns peterhaislund/onecom_ddns
It is recommended to map the /data directory in the container to the Docker host.
Content type
Image
Digest
sha256:92539bca4…
Size
22.8 MB
Last updated
over 2 years ago
docker pull peterhaislund/onecom_ddns