A simple client to query DNS servers and parse their response.
As far as protocols go, DNS is pretty clean. This client is not to demonstrate any network wizardry, but just an assurance that I can fiddle with network protocols and find my way around :)
- Since this was quite long ago, I am too lazy to implement the command line. If you want to play around with the query, go to the main function in dns.go and manually modify the hex DNS query.
- Original repository folder if you want to have a look at the commit history.
- The default query is for example.com
- Google's DNS server (8.8.8.8) is the one being queried.
- Generate the binary using go build
- Run the binary ./dns