tryhackme: DNS in Detail: Making A Request?

 What happens when you make a DNS request?

------------------------------------------


1. When you request a domain name, your computer first checks its local cache to see if you've previously looked up the address recently, if not, a request to your Recursive DNS Server will be made. 


2. A Recursive DNS Server is usually provided by your ISP, but you can also choose your own. 


This server also has a local chache of recently looked up domain names. 


If a result is found locally, this is sent back to your computer, and your request ends here. Most of the locally founds results are common , popular or heavily requested domains. 


If the request cannot be found locally, it will forward the request to the internet's root DNS servers.


3. The root servers act as the DNS backbone of the internet, their job is to redirect you to the correct Top Level Domain Server. 


Depending on your request.

for example: if you request www.website.com


The root server will recognise the TLD of ".com" and refer us to the correct TLD server that deals with .com addresses.


4. The TLD server holds records for where to find the authoritative server to answer the DNS request. 


The authoritative server is often also known as the 'nameserver' for the domain.


for example: the name server for www.website.com is kid.ns.cloudfare.com and uma.ns.cloudfare.com. 


Multiple nameservers can be found for a domain name to act as backup in case one goes down.


5. An authoritative/nameserver, DNS server, is the server that is responsible for storing the DNS records for a particular domain name and where any updates to your domain name DNS records would be made. 


Depending on the record type, the DNS is then sent back to the Recursive DNS server, where a local copy will be cached for future requests and then relayed back to the original client that made the request. 


DNS records all come with a TTL(Time To Live) value. This value is a number represented in seconds that the response should be saved for locally until you have to look it up again.


Caching saves on having to make a DNS request every time you communicate with a server.

---------------------------------------------------------------------------------------------------------------------Thanks for reading,

Roger

Comments

Popular posts from this blog

Common Network Commands: IP R

Junior Security Analyst Intro

Example of A Day in the Life of a Junior (Associate) Security Analyst