How to setup duckdns domain with cloudflare?

Hi,
Im trying to setup a Duck DNS subdiomain with cloud flare so that I can enable remote access (and subsequently connect Google Assistant, but that’s down the road a bit).

I don’t know much about the web networking part and am really struggling to know how to correctly configure the domain in cloudflare. A lot of the instrcutions I’ve seen skip over this part, e.g. saying something like “add your domain in cloudflare”.
I could really do with some help for this basic step!

I have a DuckDNS account, and created a subdomain name {mysubdomain}.duckdns.org.

What I have done so far in the cloudflare UI:

  1. Click “Ads site”
  2. Enter my duckDNS subdomain
  3. Cloudflare lists a bunch of A records of random other subdomains, like for img
  4. … what next?
    according to the internet It seems to be something to do with nameservers or CNAME records or some such… but I have no idea how to do that with DuckDNS… noone actually explains the how (like exact steps in exact tools/sites) anywhere that I’ve found so far

Please help!
Many thanks in advance

Any update on this?
Did you get it to work?

Thanks

Unfortunately not @joaopequeno :cry:
It’s on my todo list to go back and try again, but I havent found any new information to date either, so I don’t currently have much hope.

it is just sad. most of the queries on this site have no answers!

hope you find it

You are only registered for 10 days, have not started any topic and yet you make such a remark…

its more like a month of scouring. imagine how many threads me and ai has been through!

there is no point in discussing that but to implement a better find algo on search and sanitizing duplicate threads etc.

all that aside. seems like you might have something to add to duck cloudflare situation, do you ?

Step 1: Create and Configure a DuckDNS Account

  1. Sign Up for DuckDNS
    Visit DuckDNS and create an account using one of the supported authentication methods (Google, GitHub, etc.).
  2. Create a Domain
  • Choose a subdomain (e.g., mydomain.duckdns.org).
  • Add it to your account by following the instructions.
  1. Get the Update URL
    DuckDNS provides an update URL for dynamically updating your IP address. Copy this URL for use in later steps.

Step 2: Set Up DuckDNS Dynamic IP Update

You need to ensure that DuckDNS updates your dynamic public IP automatically.

Using a Cron Job:

  1. Install curl on your system:

bash

Copy code

sudo apt install curl
  1. Add a cron job to periodically update your IP:

bash

Copy code

crontab -e

Add the following line (replace <YOUR-DUCKDNS-TOKEN> and <YOUR-SUBDOMAIN>):

bash

Copy code

*/5 * * * * curl -s "https://www.duckdns.org/update?domains=<YOUR-SUBDOMAIN>&token=<YOUR-DUCKDNS-TOKEN>&ip="

This updates your IP with DuckDNS every 5 minutes.


Step 3: Set Up Cloudflare

  1. Sign Up for Cloudflare
    Go to Cloudflare and create an account.
  2. Add Your DuckDNS Domain to Cloudflare
  • In the Cloudflare dashboard, add your DuckDNS domain (e.g., mydomain.duckdns.org).
  • Cloudflare will scan for existing DNS records. Add or verify the A record pointing to your DuckDNS domain.
  1. Edit DNS Settings
  • Go to the “DNS” tab in Cloudflare.
  • Add a CNAME record pointing your custom domain (e.g., sub.yourdomain.com) to your DuckDNS subdomain (e.g., mydomain.duckdns.org).

Step 4: Configure Cloudflare Proxy

  1. In the Cloudflare DNS settings, ensure the CNAME record has the proxy (orange cloud) enabled.
  2. This routes traffic through Cloudflare for caching, SSL, and protection.

Step 5: Configure SSL/TLS

  1. Navigate to the “SSL/TLS” section in Cloudflare.
  2. Choose an appropriate SSL mode:
  • Flexible: Encrypts between the browser and Cloudflare (not between Cloudflare and DuckDNS).
  • Full: Encrypts both ends but doesn’t verify the certificate.
  • Full (Strict): Encrypts both ends and verifies the certificate (requires a valid SSL certificate on your DuckDNS server).

Step 6: Test Your Setup

  1. Visit your DuckDNS domain through the Cloudflare-proxied URL to ensure it works.
  2. Check Cloudflare’s analytics dashboard to confirm traffic is routing through Cloudflare.

How do you do 2 and 3 in step 3 and step 4 with only duckdns domaine name?