network dns - ghdrako/doc_snipets GitHub Wiki

dig +norecurse jvns.ca

Flag +norecurse use to query a resolver and ask it to only return results it already has cached.

Recursive DNS

Recursive DNS is a type of DNS service that provides the ability to look up and resolve domain names into IP addresses. It works by starting with a root DNS server and following the chain of authoritative servers until it reaches the server that has the information it needs to resolve the domain name into an IP address. The server then returns the IP address back to the client that made the request.

Recursive DNS is often provided by ISPs, enterprise-level networks, and hosting providers to their customers.

It operates differently from traditional DNS, which typically relies on caching the information it receives to speed up the resolution process. Recursive DNS, on the other hand, performs the resolution process every time it receives a request, which can result in slower response times.

Recursive DNS is used to improve the speed and reliability of domain name resolution for users. Because it performs the resolution process every time it receives a request, it can quickly resolve complex domain names and provide the correct IP address even if the information has changed.

This helps to ensure that users can quickly and easily access the websites they need, even if they are hosted on servers in different parts of the world.

Recursive DNS is also used to improve the security of the internet by providing a layer of protection against malicious domain names and phishing scams.

By verifying the authenticity of domain names and IP addresses before resolving them, Recursive DNS helps to prevent users from accidentally visiting malicious websites that could harm their devices or steal their personal information.