Last active
May 29, 2020 18:15
-
-
Save karmanyaahm/eec7c737b9bc9faa83322250268f3d0c to your computer and use it in GitHub Desktop.
My Cloudflare ddclient setup on debian 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daemon=600#check every 600 seconds - need to keep this long to not use too much getip | |
syslog=yes | |
protocol=cloudflare | |
use=web, web=dynamicdns.park-your-domain.com/getip | |
zone=example.com #domain.tld | |
ssl=yes | |
ttl=1 | |
#for auth | |
#use either this | |
login=email #[email protected] | |
password=123455678 #global api key | |
#or this | |
password=abcd#api token with dns permissions it must have the permissions "Zone - DNS - Edit" and "Zone - Zone - Read". The Zone resources must be "Include - All zones". | |
#end auth | |
domain.tld,subdomain.domain.tld #names to update | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#dependencies | |
sudo apt install libdata-validate-ip-perl | |
#get required files | |
git clone https://github.com/ddclient/ddclient.git | |
cd ddclient | |
git checkout afba2f375e1db5d679ff9ccb6293c78b23d2e191 | |
cd .. | |
#copy new executable | |
sudo cp ddclient/ddclient /usr/sbin/ | |
#move config to new place | |
sudo mkdir /etc/ddclient | |
sudo mv /etc/ddclient.conf /etc/ddclient/ddclient.conf | |
#edit ddclient.conf | |
sudo systemctl reload-or-restart ddclient.service | |
#and you're done!!!! | |
#to be sure check status once | |
sudo ddclient --daemon=0 --debug --verbose --noquiet | |
#this *should* return success in the last line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment