Skip to content

Instantly share code, notes, and snippets.

@frankpanduh
Created December 9, 2024 10:50
Show Gist options
  • Select an option

  • Save frankpanduh/d62b48df89cdebd173fa0d4dedf79db2 to your computer and use it in GitHub Desktop.

Select an option

Save frankpanduh/d62b48df89cdebd173fa0d4dedf79db2 to your computer and use it in GitHub Desktop.
DDclient.conf for IPV4/IPv6 dual stack config for Cloudflare. (Ubuntu 24.04)
daemon=300 # check every 300 seconds
syslog=yes # log update msgs to syslog
pid=/var/run/ddclient.pid # record PID in file
ssl=yes # use TLS
usev4=webv4, webv4=https://api.ipify.org
usev6=webv6, webv6=https://api6.ipify.org
web-skip='ip=' # IP address above is after 'ip='
protocol=cloudflare, \
zone=YOUR-ZONE-ID, \
ttl=1,
password='API-TOKEN',
example.domain, sub.example.domain
@frankpanduh
Copy link
Copy Markdown
Author

Based on the fix from an idea from this reply:
ddclient/ddclient#599 (comment)

Needed a fix for DDclient to print both IPV4 and IPV6 addresses to records not just ipv6 on the Dual Stack rig I'm using.

Here for reference if anyone knows a cleaner method using:
https://cloudflare.com/cdn-cgi/trace vs api.ipify.org would also be rad.

As I found https://cloudflare.com/cdn-cgi/trace to only update ipv6, and completely disregard ipv4.

@greenship24
Copy link
Copy Markdown

Many thanks for this gist. Helped me get proper dual stack support.

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