This script serves the purpose of updating DNS entries with noip.com
- Python 3
- Python modules
- requests
- logging
- re
- os
- datetime
The current flaws include, but are not limited to:
- Lookup can be done better
Insert values for username and password into the variables called noip_username and noip_password respectively.
Set the host names for the hosts you need to update into the hostnames list.
Example:
noip_username = 'username'
noip_password = 'password'
noip_hostnames = ['example.org', 'server.example.org' 'example.com', 'example.net']
The repository contain a Dockerfile that can be used to build an image
docker build -t dotslashme/noipy:latest .
Have a look at the docker-compose.yml
file for an example on how to use the image after build. The username / password for noip are set as docker secrets using the names:
noip-username
noip-password
Hostnames that should be updated are configured through the environment variable NOIP_HOSTS
.