Domain Mapping - Can you use a CNAME instead of an 'a' record

1.2k Views Asked by At

So I have a problem - I've previously always done domain mapping by updating the 'a' record with my static IP address. My new hosting provider will not be able to provide me with a static IP address and I am wondering if there is a way to do domain mapping just through CNAMES. Is this possible?

2

There are 2 best solutions below

2
On

CNAMEs must always point to another domain name, and not an IP address. You always need an A record point to an ip addreess and then a CNAME pointing to the A record, or another domain.

Even if they don't give you and ip address they have one for you, so you can reach your domain in some way.

No, it will not affect the SSL on the site. SSL (or TLS) is away from this, DNS resolution occurs first, so when the client knows where to connect the encryption starts and so on.

0
On

Boom - after scouring the internet I found the answer - it's called a 'flattened' CNAME and can be done through CloudFlare. You can see the post here of someone using a WordPress multisite that needed to do this https://markwilkinson.me/2018/10/17/domain-mapping-with-wordpress-multisite-without-using-ip-addresses/#cname-mapping