Skip to content

Instantly share code, notes, and snippets.

@dalhundal
Created May 4, 2014 16:48
Show Gist options
  • Save dalhundal/89159b3f032588586e91 to your computer and use it in GitHub Desktop.
Save dalhundal/89159b3f032588586e91 to your computer and use it in GitHub Desktop.
Shell script to update namecheap.com dynamic dns for a domain with your external IP address
#!/bin/sh
# Shell script to update namecheap.com dynamic dns
# for a domain to your external IP address
HOSTNAME=yoursubdomain
DOMAIN=yourdomainname.com
PASSWORD=y0urp455w0rd
IP=`curl -s echoip.com`
curl "https://dynamicdns.park-your-domain.com/update?host=$HOSTNAME&domain=$DOMAIN&password=$PASSWORD&ip=$IP"
@alexspurling
Copy link

What the heck is park-your-domain.com and why would I send them my namecheap credentials? Is this a scam?

@dalhundal
Copy link
Author

dalhundal commented Jan 14, 2024 via email

@alexspurling
Copy link

Thanks - I did search and didn't find any mention of park-your-domain.com in Namecheap's documentation. Why don't they use namecheap.com or api.namecheap.com as their API domain?

@dalhundal
Copy link
Author

dalhundal commented Jan 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment