What is DNS and its functions?
It is not easy to remember the names of the IP addresses, which contain only the numbers. Therefore it is easy to remember alphanumeric names instead of remembering IP addresses. Therefore domain names have been assigned to each IP address. Example of Domain names is https://www.google.com/?gws_rd=ssl. The domain name system (DNS) is an Internet-wide distributed database that translates between domain names and IP addresses.
Domain Name System is a hierarchical database system, which is used for resolve IP addresses from a Domain Name or host names.
It allows to give meaningful names to the hosts through URL system, instead of an IP Address which contains only numbers.
You have said it is a hierarchical system. Please tell me what the hierarchy of the DNS is and how it works.
Domain Name System consist of Name servers which are arranged in a Hierarchical order. In the top of the hierarchy there is a root server. In the second level there are several Top Level Domain servers. Namely,
In each top level domains there are several sub domains or siblings. This is the hierarchy of the Name Servers.
DNS Name Hierarchy

|
com |
Commercial organizations |
|
edu |
Educational institutions |
|
gov |
Government institutions |
|
int |
International organizations |
|
mil |
U.S. military institutions |
|
net |
Networking organizations |
|
org |
Non-profit organizations |

But how does it resolve the IP address? What does happen when I type a URL?
