CNAME configuration for Saas service

Asked

Viewed 136 times

2

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

servico.meudominio.com. CNAME username.servico.com

I will keep the service in a subdminio according to the first address above, the doubt is the other service address.com is a domain of mine also where I intend to put a service Saas, my question is: What I need to do for this.com service domain so that my customers can set up CNAME on their hosting and the service works under the configured domain?

I appreciate who can help because it’s been 1 week that I’m researching on the subject and so far only find posts on how to set up CNAME and how it’s been 2 days since I set up and the domain is not yet accessible, I’d like to know if there’s anything I need to do on duty.com

Hugs!

1 answer

1


A CNAME is like a nickname, so based on your example, type servico.meudominio.com will resolve to subdomain IP username.servico.com, or is the subdomain username in servico.com must answer for an IP.

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

DNS ZONE in meudominio.com

servico 14400 IN CNAME username.servico.com.

DNS ZONE in service.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 variable $_SERVER["HTTP_HOST"] will work: 'servico.meudominio.com'

  • Thanks for the reply @Jader, I will test here and tell you the result.

  • It didn’t work =/ Currently my settings look like this: My Domain servico.meusite.com. 14400 IN CNAME username.servico.com DNS zone in service.com username.servico.com. 14400 IN A ip-do-site-do-servico From what I understood in my domain, I use CNAME to point to my user in the service and the service, points to the IP address where the DNS is configured, so servico.meudominio.com should work correctly? I believe the CNAME settings on meudomonio.com are ok, but something is missing in servico.com, any suggestions?

  • @fabiogoodoy and when you type directly username.servico.com works? I don’t mean just the ping, but if the service actually works as it should...

  • Yes, @Jader the service address is: (http://demo.eadplataforma.com) which is a website of mine too, and I wanted it to work on the test address that is this (http://ead.fabiogodoy.org) so I made the settings according to all the posts I found and as you recommended, but it really didn’t work. = / at (http://eadplataforma.com) I even have Google Apps that works like this using CNAME.

  • @fabiogoodoy It seems to me that the virtualhost on the http server is specific to that subdomain, so it is not accepting the CNAME coming from the other domain... Add the domain as parked, or set up directly on the virtualhost as serveralias can resolve...

  • @fabiogoodoy in time, before triggering the response, I did tests, with domains hosted on separate dedicated servers, but in my tests the target domain accepted subdomains such as wildcard, and received the external domain without any problem, but testing with a domain without wildcard and without the configured subdomain did not work, nor solved the IP... see more about servername and serveralias in this link

  • Thanks @Jader, I will do tests here and read a little more about server alias to see if it solves.

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.