mrikirill / SynologyDDNSCloudflareMultidomain

Synology DDNS Cloudflare service provider with multidomains and subdomains
https://mrikirill.github.io/SynologyDDNSCloudflareMultidomain/
MIT License
476 stars 72 forks source link

Using CNAME instead of A records #50

Open thoiruddin opened 1 month ago

thoiruddin commented 1 month ago

Hi,

Is it possible to use a CNAME instead of an A record? I checked the Synology DDNS IP address, and it is the same as the A records. The reason to use a CNAME is in case the IP address changes or there is a blackout or temporary router down situation, it will always stay connected using Synology DDNS, which has the same IP address as my ISP.

mrikirill commented 1 month ago

Hi,

CNAME (Canonical Name) DNS record cannot directly point to an IP address. It is used to map one domain name (alias) to another domain name (canonical name). In simpler terms, a CNAME record allows one domain or subdomain to resolve to another domain’s DNS records, which could eventually resolve to an IP address, but it cannot directly map to an IP address itself.

If you need to point a domain directly to an IP address, you should use an A record (for IPv4 addresses) or an AAAA record (for IPv6 addresses).