Mobile app version of vmapp.org
Login or Join
BetL925

: Map both wildcard subdomains and root TLD at registar with CNAME only - possible? WordPress multisite newbie; trying to understand client domain mapping best practices. Example: client owns domain

@BetL925

Posted in: #Cname #Dns #Domains #Subdomain #Wordpress

WordPress multisite newbie; trying to understand client domain mapping best practices.

Example: client owns domain foosite.com, registered at GoDaddy.


I need to get any/all incarnations to map to client.mymultisite.com
I've tried both * and www CNAME pointing to client.mymultisite.com
I've tried deleting the A record at GoDaddy.

foosite.com works. I cannot get the root foosite.com to work. I really do not want to use an A record that points to my multisite install static IP address -- since if I ever have to move to a new hosting service I will have potentially hundreds of clients I would need to tell to please update their A record for the new IP address.

I thought of using my hosting company DNS instead of GoDaddy, since then I can instantiate a cpanel account there with the sole purpose of doing the redirects, but that seems like a lot of overhead and will also tie me down to the hosting company DNS (similar problem to being tied to the static IP address).

So...given all that, is there a way to have both wildcard subdomain mapping and root TLD mapping via CNAME only? Or is there some other option that would solve this dilemma? I read this blog entry at CloudFlare which seems like it might be a solution - is this "CNAME flattening" idea what I am looking for?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi941

The main domain record (foosite.com), unlike whatever.foosite.com cannot be answered as CNAME, only A or AAAA. If I remember it properly, it is by RFC.

Solution: e.g. amazon has tricky way. The key here is not 'the main record cannot have cname record' but 'the main record cannot be answered as cname record'. They made their own record type - alias.

The difference between cname and alias is that when a dns client queries a site with cname - it receives a reference to another domain and have to resolve it too, whilst for alias record the dns server itself resolves the result and returns the IP - as it should be by RFC.

TL;DR
Use Route53 at amazon or something like that.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme