Skip to content

Script to update Namecheap DDNS records. Includes Dockerfile.

Notifications You must be signed in to change notification settings

j-fuentes/namecheap-ddns-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

namecheap-ddns-updater

Script to update Namecheap DDNS records. Includes Dockerfile.

Build docker image

docker build -t namecheap-ddns-refresher .

How to use

You pass the hosts as arguments and the rest of parameters via environment variables.

These are all the options with their default value (* means it is mandatory):

PASSWORD *: Password provided by Namecheap to use the DDNS api.

DOMAIN *: Domain that contains the records.

FREQ=300: Frequency of the update in seconds.

ONLY_ONCE=false: If true, it will only execute once and it will exit after that.

VERBOSE=false: Executes curl in verbose mode, which shows A LOT of info.

SHOW_RESPONSE=true: Logs the response from the Namecheap API.

Use docker image

docker run -ti -e PASSWORD=abcdefg1234 -e DOMAIN=mydomain.xyz josefuentes/namecheap-ddns-refresher host1 host2 host3

Use script

PASSWORD=abcdefg1234 DOMAIN=mydomain.xyz ./update.sh host1 host2 host3

About

Script to update Namecheap DDNS records. Includes Dockerfile.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published