Hackatosh / dns-resolver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DNS Resolver

This project is based on https://implement-dns.wizardzines.com/index.html (it is a Jupyter notebook, the zip file is available in the source folder in case the website gets deleted !)

The purpose of this project is to allow me to practise writing programs in Golang and to help me understand a bit better how DNS works !

Some useful documentation :

Run the project

To run, use the following command and whitelist the dns-resolver folder in your favorite antivirus :

go build -o .\out\dns-resolver.exe && .\out\dns-resolver.exe

Next step

Well I do not really plan on doing more but this project could use :

  • More error handling
  • Write some unit tests on the decoding / encoding !
  • Protection against loop for DNS compression (this could allow some attack)
  • Implement some DNS caching ?
  • Handle more type of Records ?
  • Make a CLI ?

About


Languages

Language:Go 100.0%