CNAME configuration for SaaS service

2

Ok, I know that to set up a CNAME I go to the simple DNS editor and create the following configuration.

service.mydomain.com. CNAME username.servico.com

I will keep the service in one subdino according to the first address above, the doubt is the other address servico.com is a domain of mine also where I want to put a SaaS service, my question is: What I need to do for this domain service so that my client can configure CNAME on their hosting and the service works under the configured domain?

I would like to thank those who can help because I have been researching for the past 1 week and until then I only find posts about how to configure the CNAME and since 2 days ago I made the configuration and the domain is not yet accessible, I would like to know if there is something I need to do on servico.com

Hugs!

    
asked by anonymous 23.08.2014 / 13:27

1 answer

1

A CNAME is like a nickname, so based on your example, typing servico.meudominio.com will solve for the subdomain IP username.servico.com , ie the subdomain username in servico.com must respond by an IP .

You should create each subdomain in the DNS table or wildcard zone (*).

DNS ZONE at mydomain.com

servico 14400 IN CNAME username.servico.com.

DNS ZONE in servico.com

username 14400 IN CNAME servico.com.

ou

* 14400 IN CNAME servico.com.

To get the domain that originated the request, in PHP you can use the $_SERVER["HTTP_HOST"] variable to result: 'servico.meudominio.com'

    
23.08.2014 / 14:38