When we create a new Odoo instance for a client, we need a subdomain pointing to the server to access the client domain. Some clients want to use their own domain with a subdomain, such as odoo.client_one.coop, pointing to the Odoo server.
To easily manage the domains, we can use a CNAME record to point to one of our subdomains, allowing us to change the target of our subdomain.
The steps to do this are:
devs.coop DNS server pointing to the server. For example, client_one.devs.coop. We manage thid DNS records with domains.coop. The credentials are in BW.CNAME record pointing to the created subdomain. For example, odoo.client_one.coop pointing to client_one.devs.coop.Now we can set the domain in the Odoo client to odoo.client_one.coop, and the server will be pointed to the subdomain.
devs.coop will be used.client-test.devs.coop will be used. Test domains will be under devs.coop, unless the customer expressly requests to have also the test URL under his domain.CNAME record pointing to one of our subdomains to facilitate server management.