Domain Name Server (DNS) is the Internet-wide “phone book” that tells the browser how to resolve a human-readable names
google.com to a specific IP address of a server that it can then connect to.
Bare domains and subdomains
A bare domain is a domain that does not contain a subdomain, such as
notice that there is no prefix like
app. present before
Bare domain are also known as: apex, base, naked, root, root apex, or zone apex domains.
In DNS provider configuration bare domains are usually symbolized by an
A Subdomain is a part of a domain name that comes before the bare domain name.
For example, in
app is a subdomain.
In most situations it is recommended to move your website off the bare domain so that it uses a prefix (e.g.
That approach provides some advantages like better manageability of DNS configuration or improved security.
Example: on this website,
fineconstant.com is a bare domain, whereas
www part in
www.fineconstant.com is a subdomain.
A permanent redirect (subdomain forward) on DNS provider level is set up so that it redirects from
bare domain to
fineconstant.com -> https://www.fineconstant.com.
DNS record types
List of some of the most common or useful DNS record types.
A– Apex or root record. It maps a hostname to an IPv4 address of a server. All traffic in a domain will be redirected to the specified IP address.
AAAA– Similar to
Abut maps to IPv6 address instead. It is a more modern protocol.
ALIAS– This record type is not a part of a standard, so it is not supported by all DNS providers (e.g. Google Domains at the time of writing this post). It is a virtual record type to provide CNAME-like behaviour on bare (apex) domains e.g. point from a bare domain to a subdomain.
CNAME– Canonical name record used to specify an alias. It maps one human-readable hostname to another one that the browser should look up instead. According to the DNS specification, any domain name that has a
CNAMErecord set cannot have any other DNS records associated with it.
On this website I use
CNAME www.fineconstant.com -> fineconstnat.netlify.app.
MX– Mail server address. Can be used to route email traffic on your domain to another, external server. There can only be one
MXrecord for one domain.
TXT– Allows to include any text in the domain record. Can be used to implement the Sender Policy Framework (SPF) specification. This record is often used to verify domain ownership in Google applications.
- Cloudflare – DNS records
- Home.pl – What are domain records?
- Netlify – How to Set Up Netlify DNS – Custom Domains, CNAME, & A Records
- Why use www? | www. is not deprecated
This entry is a part of my Today I Learned (TIL) series, in which I take and share short notes on what I have recently learned.