GitHunt
JV

jvns/tiny-resolver

tiny DNS resolver

This is a command line program that makes DNS queries. There's a version in bash and a version in Go.

how to run it

The bash version:

bash resolve.sh example.com.

The go version:

go run resolve.go example.com.

The Python version

pip install dnspython
python3 resolve.py example.com

other versions

blog post

You can read more about how this works in A toy DNS resolver

Languages

Go45.5%Python33.3%Shell21.2%

Contributors

MIT License
Created February 1, 2022
Updated January 4, 2026