When you have your own Store, CMS or PIM running in our blugento shop factory then you have to work with CNAME to make your domain pointing to the url of store. You can easily get the URL of your store.
Adding CNAME record always depend upon various hosting provider. You can consult your hosting provider or search for it.
What’s a CNAME record?
CNAME records can be used to alias one name to another. CNAME stands for Canonical Name.
A common example is when you have both example.com and www.example.com pointing to the same application and hosted by the same server. In this case, to avoid maintaining two different records, it’s common to create:
An A record for example.com pointing to the server IP address
A CNAME record for www.example.com pointing to example.com
As a result, example.com points to the server IP address, and www.example.com points to the same address via example.com. Should the IP address change, you only need to update it in one place: just edit the A record for example.com, and www.example.com automatically inherits the changes.
A CNAME record must always point to another domain name, never directly to an IP address.
- A CNAME record must always point to another domain name and never directly to an IP address.
- A CNAME record cannot co-exist with another record for the same name. It’s not possible to have both a CNAME and TXT record for www.example.com.
- A CNAME can point to another CNAME, although this configuration is generally not recommended for performance reasons. When applicable, the CNAME should point as closely as possible to the target name in order to avoid unnecessary performance overheads.
CNAME record format
The structure of an A record follows the standard top-level format definition defined RFC 1035. The RDATA section is composed of one single element:
domain-name A domain name which specifies the canonical or primary name for the record. The canonical representation is:
where <domain-name> is a fully-qualified domain name such as example.com.
Querying CNAME records
You can use dig to determine the CNAME record associated to a domain name. The result is contained in the ANSWER section. It contains the fully-qualified domain name (FQDN), the remaining time-to-live (TTL), and the domain-name.
$ dig CNAME www.blugento.com ; <<>> DiG 9.10.6 <<>> CNAME www.blugento.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5274 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;www.blugento.com. IN CNAME ;; ANSWER SECTION: www.blugento.com. 3599 IN CNAME blugento.com. ;; Query time: 52 msec ;; SERVER: 22.214.171.124#53(126.96.36.199) ;; WHEN: Fri Nov 02 20:33:09 CET 2018 ;; MSG SIZE rcvd: 59