Skip to content

A simple client to query DNS servers and parse their response.

Notifications You must be signed in to change notification settings

chettriyuvraj/DNS-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNS-Client

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.

Usage

  • Generate the binary using go build
  • Run the binary ./dns

Output

  • I ended up creating a beat-up replica of dig's output, with some fields missing

  • image
  • Original dig output in comparison

  • image

About

A simple client to query DNS servers and parse their response.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages