Skip to content

Releases: navilg/namecheap-ddns-docker

v1.3.0

08 Sep 18:52
9ef5571
Compare
Choose a tag to compare

What's Changed

  • #11 timeout the pubip env variable set in container by @navilg in #15

Full Changelog: 1.2.0...1.3.0

v1.2.0

10 Mar 17:05
43abc95
Compare
Choose a tag to compare

What's Changed

  • fix (#8): http request always returns 200 status code even in failure by @navilg in #9
  • Release 1.2.0 by @navilg in #10

Full Changelog: 1.1.0...1.2.0

Container image: linuxshots/namecheap-ddns:1.2.0

v1.1.0

27 Aug 16:34
08d0c50
Compare
Choose a tag to compare
  • HTTP timeout set to 30 seconds
  • Add ipify api to get public IP #4
  • Fix #6
  • Fix #5

First release

02 Apr 11:27
32be9f5
Compare
Choose a tag to compare

How to use it

  • Enable Dynamic DNS for your domain from Namecheap. Namecheap Account -> Domain List -> Manage -> Advanced DNS -> Dynamic DNS -> Toggle Status

  • Copy the Dynamic DNS password which is generated after enabling Dynamic DNS. Keep it safe and handy.

  • Add a record of type A + Dynamic DNS with required host name.

  • Install docker on server.

  • Run below command

Suppose, You need DDNS for server.example.com

docker run --name server.example.com -d --restart unless-stopped -e NC_HOST='server' -e NC_DOMAIN='example.com' -e NC_PASS='DynamicDDNSPa2w0rd' linuxshots/namecheap-ddns:1.0.0

Here,
NC_HOST is host name added in Namecheap record.

NC_DOMAIN is your domain name.

NC_PASS is your Dynamic DDNS password which is generated from Namecheap.

  • Check the log
docker logs server.example.com
  • To stop, start and remove DDNS.
docker stop server.example.com # To stop
docker start server.example.com # To start after its stopped
docker rm server.example.com -f # To remove

Build your own image

To build your own image

  • Clone this repo

  • Run docker build

# Replace OS and ARCH values with valid values of GOlang environment variables GOOS and GOARCH.
docker build --build-arg OS=linux --build-arg ARCH=amd64 --build-arg VERSION=1.0.0 -t linuxshots/namecheap-ddns:1.0.0 . 

NOTE: This sets the TTL to Automatic i.e. 30 minutes. Currently, There is no way provided by Namecheap to set custom TTL in Dynamic DDNS.