Using DDNS and adding CNAME

Hello everyone, So I'm setting up a server in my house, I have a dynamic IP and so I'm using a DDNS, I've already use services like no-ip.com or dynu.com, but this time I bought a domain in Cloudflare and wanted to use Cloudflare's solution. I'm using a super simple bash script and a crone job that updates my the IP in a in this case update.example.com. I've tested that it works. If I manualy set an IP 1.2.3.4 after ~1min it will change to myPublicIP. Problem and checks: - If I ping update.example.com I get 64 bytes from 104.21.69.88 (104.21.69.88) an IP from Cloudflare but not myPublicIP. - I add a CNAME myApp to that points to update.example.com. - I ping myApp.example.com I get 64 bytes from 172.67.206.191 (172.67.206.191) also an IP from Cloudflare.
3 Replies
Erisa
Erisa2y ago
Those IPs are Cloudflare's Proxy IPs, which will proxy HTTP/HTTPS traffic for you - if you want the real IP to be returned and exposed like a regular DNS service, you can set the DNS record to "DNS-only" mode (Turn off the switch next to the orange cloud when editing) and then your pings will work as expected
Erisa
Erisa2y ago
Proxy status · Cloudflare DNS docs
The Proxy status of a DNS record affects how Cloudflare treats incoming traffic to that record. Cloudflare recommends enabling our proxy for all A, …
weimil
weimilOP2y ago
Hi Erisa thanks I'll try that

Did you find this page helpful?