So what is DNS. We have all heard DNS lookup failed and all sorts of stuff every now and then. What is it all about.
A DNS or Domain Name Service is a special kind of service which maps an IP to an address. Let's understand it deeper.
Suppose you type in www.gooogle.com. Now the request has to be sent from your computer to the google servers to get the google page. Right?
Yes. But how does your computer know where google is? This is where the DNS comes in.
Every server or device which is connected to the Internet will have an IP address. That is how we identify where they are.
It's similar to finding a person. If someone tells you to find Jack you will be confused as to where on Earth Jack lives, but if someone tells you Jack of Mumbai, India you have a better clarity.
So what happens in a DNS server.
Your computer takes that request and goes to the nearest DNS server. A DNS server is globally distributed so anyone from anywhere can access one of them at all times.
The DNS server will have the corresponding IP for your address. This method of obtaining information from the DNS server is called a query.
Once that is obtained you are free to go to Google servers since you now have the exact IP address.
DNS has different records, namely
- A or AAAA
- Name server
I shall update the details regarding these shortly!.