Domain Name System (DNS) – is a system that store and deliver information about domain names, one of the key functions of this system – translate website address (URL) to an IP address when you send a specific query to it’s name server.
IP address used for computer identification for communications over the network (internet).
For example:
Domain name dock.co.nz has an IP address 178.63.26.126
When you enter URL address in your browser, you type a human-understandable word or a name, that you can read and understand, but your computer can’t. Of course it’s possible for us to enter IP address directly, like phone numbers:
- facebook.com has address 31.13.91.36
- youtube.com has address 173.194.220.136
- twitter.com has address 104.244.42.193
But we can’t remember all phone numbers of our contacts and of course we can’t remember IP addresses of every website we use.
Here Domain Name System to make our life easier
We will not dive into technical specification about DNS, as the purpose of this article is to give you the understanding of how it works.
Domain Name System “database” has hierarchical structure.
Domain Namespace | Examples | |||
Root domain | . (dot symbol) | |||
Top-level domain (TLD) | com | net | org | nz |
Second-level domain | google.com | juniper.net | icann.org | co.nz |
Third-level domain | fonts.google.com | www.juniper.net | whois.icann.org | dock.co.nz |
Now, what happens when we enter address dock.co.nz in browser?
DNS Request step by step (Attention! This is extremely imaginative comparison!).
- Our computer send DNS request to Root domain namespace – “We need information about domain dock.co.nz”.
- Then root DNS server forward us to Top-level domain namespace – and we repeat our request to “nz” domain name – “We need information about domain dock.co.nz”.
- Now “nz” forward us to “co.nz” and until we reach Third-level domain namespace and get response to our request for domain name dock.co.nz:
DNS Records for your domain located at NS servers:
ns1.dock.co.nz. (IP: 178.63.26.127)
ns2.dock.co.nz. (IP: 178.63.26.128) - After we receive our information about Name Server (NS) records, we connect to those servers and get needed DNS Records.
dig google.com ; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47211 ;; flags: qr ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;google.com. IN A ;; ADDITIONAL SECTION: google.com. 168 IN A 209.85.233.101 ;; Query time: 182 msec ;; SERVER: 127.0.1.1#53(127.0.1.1) ;; WHEN: Fri Nov 10 03:56:34 NZDT 2017 ;; MSG SIZE rcvd: 55
example of DNS request using dig tool in Ubuntu (Linux).
Now DNS Records are saved at our local computer in DNS Cache. So next time we visit website dock.co.nz, until it’s expired or cleaned. Average caching time is about hour. Each DNS request takes from 3 to 150 milliseconds. Imagine what load could be without caching, because of daily produced billions of DNS requests over the internet.
Name Servers and DNS Records
Name Server is a service that handle all requests and provide needed DNS Records.
Keep on working, great job!
Good day! Do you use Twitter? I’d like to follow you if that would be ok.
I’m absolutely enjoying your blog and look forward to new updates.
Wonderful, what a blog it is! This blog provides
helpful facts to us, keep it up.
I pay a visit day-to-day a few blogs and blogs to read articles or reviews, except this weblog presents quality based articles.
Good blog you’ve got here.. It’s difficult to find
excellent writing like yours these days. I seriously appreciate individuals like you!
Take care!!
Hello, everything is going perfectly here and ofcourse every
one is sharing information, that’s actually fine,
keep up writing.
Way cool! Some very valid points! I appreciate you writing this write-up plus the rest of the website is very good.