Need a refresher on DNS concepts

Search for a command to run...

No comments yet. Be the first to comment.
AWS Network Security Services cheat sheet AWS Firewall Manager: AWS Firewall Manager is a security management service that allows you to centrally configure and manage firewall rules across your accounts and applications in AWS Organizations. As new...

How To Remove Personal Information From The Internet in 2023 https://support.google.com/websearch/answer/9673730 Follow the video guide What can be removed with the new Google removal tool The personally identifiable information that may be removed...

[#whatsapp proxy settings | use proxy WhatsApp | set proxy WhatsApp |WhatsApp new update 2023WhatsApp proxy settings | use proxy WhatsApp | set proxy WhatsApp |WhatsApp new update 2023https://www.whatsapp.com/A…youtube.com](https://youtube.com/shorts...

Palo Alto and Panorama — Hardening the Configuration As per Hardening Network Devices National Security Agency Cybersecurity Information, the below points are covered in this Course. Palo Alto and Panorama — Hardening the Configuration (gumroad.com) ...

https://cyberbruharmy.gumroad.com/l/Ransomware [Ransomware Attack & Prevention: Everything You Need To KnowRansomware is a type of malicious software that encrypts files and then demands a fee to decrypt them. This sort of…cyberbruharmy.gumroad.com](...

Cyber Security
51 posts
Welcome to CyberBruhArmy's help center! We're here to answer your questions. Can't find what you're looking for? Send our support team a note at contact@cyberbruharmy.in!
Finally, we’ll give you a sneak peak into the amazing things that can be achieved by the next generation of DNS servers.
DNS is a global system for translating IP addresses to human-readable domain names. When a user tries to access a web address like “example.com”, their web browser or application performs a DNS Query against a DNS server, supplying the hostname. The DNS server takes the hostname and resolves it into a numeric IP address, which the web browser can connect to.
A component called a DNS Resolver is responsible for checking if the hostname is available in local cache, and if not, contacts a series of DNS Name Servers, until eventually it receives the IP of the service the user is trying to reach, and returns it to the browser or application. This usually takes less than a second.
Iterative DNS queries are ones in which a DNS server is queried and returns an answer without querying other DNS servers, even if it cannot provide a definitive answer. Iterative queries are also called non-recursive queries.
Recursive DNS queries occur when a DNS client requests information from a DNS server that is set to query subsequent DNS servers until a definitive answer is returned to the client. The queries made to subsequent DNS servers from the first DNS server are iterative queries.
When a client or DNS server requests a DNS server to resolve a domain name it can use a recursive or non recursive query.
Recursive queries are generally used by clients i.e. PCs and they tell DNS server to respond only with an answer and not a referral.
A referral is essentially a response that says I don’t know the answer, but try this server it may know the answer.
Non recursive or Iterative queries are used by DNS servers and essentially instruct the other DNS server to return an answer or return the address of another DNS server that may know the answer.
DNS Types: 3 DNS Query Types
There are three types of queries in the DNS system:
Recursive Query
In a recursive query, a DNS client provides a hostname, and the DNS Resolver “must” provide an answer-it responds with either a relevant resource record, or an error message if it can’t be found. The resolver starts a recursive query process, starting from the DNS Root Server, until it finds the Authoritative Name Server (for more on Authoritative Name Servers see DNS Server Types below) that holds the IP address and other information for the requested hostname.
Iterative Query
In an iterative query, a DNS client provides a hostname, and the DNS Resolver returns the best answer it can. If the DNS resolver has the relevant DNS records in its cache, it returns them. If not, it refers the DNS client to the Root Server, or another Authoritative Name Server which is nearest to the required DNS zone. The DNS client must then repeat the query directly against the DNS server it was referred to.
Non-Recursive Query
A non-recursive query is a query in which the DNS Resolver already knows the answer. It either immediately returns a DNS record because it already stores it in local cache or queries a DNS Name Server which is authoritative for the record, meaning it definitely holds the correct IP for that hostname. In both cases, there is no need for additional rounds of queries (like in recursive or iterative queries). Rather, a response is immediately returned to the client.
DNS Types: 3 Types of DNS Servers
The following are the most common DNS server types that are used to resolve hostnames into IP addresses.
DNS Resolver
A DNS resolver (recursive resolver), is designed to receive DNS queries, which include a human-readable hostname such as “www.example.com", and is responsible for tracking the IP address for that hostname.
DNS Root Server
The root server is the first step in the journey from hostname to IP address. The DNS Root Server extracts the Top-Level Domain (TLD) from the user’s query-for example, www.example. — and provides details for the .com TLD Name Server. In turn, that server will provide details for domains with the .com DNS zone, including “example.com”.
There are 13 root servers worldwide , indicated by the letters A through M , operated by organizations like the Internet Systems Consortium, Verisign, ICANN, the University of Maryland, and the U.S. Army Research Lab.
Authoritative DNS Server
Higher level servers in the DNS hierarchy define which DNS server is the “authoritative” name server for a specific hostname, meaning that it holds the up-to-date information for that hostname.
The Authoritative Name Server is the last stop in the name server query-it takes the hostname and returns the correct IP address to the DNS Resolver (or if it cannot find the domain, returns the message NXDOMAIN).
DNS Types: 10 Top DNS Record Types
DNS servers create a DNS record to provide important information about a domain or hostname, particularly its current IP address. The most common DNS record types are: