Domain Name System (DNS) records are pieces of information hosted on DNS servers that provide details about domains.
An A record maps a domain or a subdomain to its server’s IP address.
The same domain or subdomain can be mapped to multiple IP addresses.
This is especially useful when you are trying to make your system fault-tolerant.
In order to make your system fault-tolerant, add multiple entries of the A records with the same domain or subdomain but different IP address values.
Here is an example of an A record:
As you can see in the above example, the A record is set to point to the IP address (119.165.10.1
) whenever the user tries to access the website educative.io
or drawing.educative.io
.
A CNAME record maps a particular domain or subdomain to another hostname.
As you can see in the example above, the DNS points to educative.io
whenever the user tries to access www or www.educative.io
.
Getting an IP address from DNS can be an iterative or a recursive process:
educative.io
.http://www.google.co.uk/
Free Resources