Page 1 of 1

CNAME record Canonical Name Record

Posted: Sun Feb 02, 2025 9:25 am
by mehadihasan123456
A CNAME record ( Canonical Name Record ) is a type of DNS record that is used to create an alias for an existing domain or subdomain. A CNAME record points to another domain name instead of directly specifying an IP address.

When a client computer or server accesses a domain name that contains a CNAME record, the DNS server redirects the request to the domain specified in the CNAME record and returns the corresponding IP address.

Example:

You might have a CNAME record that links the lithuania email list subdomain "mail.example.com" to the main domain "emailprovider.com". When a user tries to access "mail.example.com", the DNS server returns the IP address associated with "emailprovider.com" and the request is forwarded to the "emailprovider.com" server.
CNAME records are especially useful when you want to set up an alias for a domain or subdomain that already has its own A record (pointing to an IP address) or other records. Instead of creating duplicate records or changing existing DNS settings, you can use a CNAME record to point to an existing domain.

It is important to note that a CNAME record cannot point to the root domain (e.g. example.com). It can only be used for subdomains or other domains that are not the root.

Using CNAME records can simplify DNS management and provide flexibility when changing settings or moving services to another server or hosting provider.