A simple lightweight command line tool to resolve dns that can resolve the IP address for a host
DNS which means Domain Name system , when you type a url in your browser, some actions take place behind the scene
- The browser check if it has the url in its DNS cache if it doesnt
- The operating system (OS) provides a function to check it own DNS cache if it doesnt
- The Os request for a server called a DNS Resolver (tool built) knows how to find the authoritative nameservers by sending a DNS query
- The authoritative nameservers are the servers where DNS records are actually stored. Ex : Google as a nameserver
For more information on dns resolver, visit this links below
-
Wizardzines - A visual comic of how DNS resolver work by Julia Evans
-
Wikipedia - Wiki info
-
Rfc1035 - Rfc standard on how resolver needs to be built
In this example we use google IP Address as the name server
Clone the Repository, check in on the root folder and run the main.go file, you see a list address printed on the cmd line