Lately my ddclient can’t get IPv4 and IPv6, it appear that https://domains.google.com/checkip no longer active and Google drop support to query IP address.
Client Download
As per article, I use version ddclient version 3.9.1
Install
It’s recommend to create a new user of ddclient
without sudo group! and run ddclient
via crontab
I would recommend install at /opt/ddclient
folder with ddclient:ddclient
permission!
A config file also at /opt/ddclient
with permission 600
where only ddclient can see.
Mitigate
To mitigate this issue with google checkip
, a modification is needed!
IPv4
For me, IPv4 and IPv6 are in separate config file, where IPv4 can be done at one VM or router because we only have one Public IPv4
ddclient.conf
use=web, web=api.ipify.org
protocol=cloudflare
[email protected]
password=cf_api_code
zone=yourdomain.com
sub1.yourdomain.com, sub2.yourdomain.com, sub3.yourdomain.com
crontab -e
# ddclient
@reboot /bin/rm -f /var/cache/ddclient/ddclient.cache
*/6 * * * * /usr/bin/perl /opt/ddclient/ddclient -daemon=0 -debug -verbose -noquiet -file /opt/ddclient/ddclient.conf
IPv6
Main mission of IPv6 is pure P2P, end-point, where each device, each VM has own Public IPv6, so each VM must have IPv6 conf file as per IPv6 Address
ddclient.conf
use=cmd, cmd='curl -k -s http://api6.ipify.org/'
protocol=cloudflare
[email protected]
password=cf_api_code
zone=yourdomain.com
sub1.yourdomain.com, sub2.yourdomain.com, sub3.yourdomain.com
crontab -e
# ddclient
@reboot /bin/rm -f /var/cache/ddclient/ddclient.cache
*/6 * * * * /usr/bin/perl /opt/ddclient/ddclient -daemon=0 -debug -verbose -noquiet -usev6 cmd -file /opt/ddclient/ddclient.conf