This is a command line program that makes DNS queries. There's a version in bash and a version in Go.
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
- Rust: https://github.com/kmkaplan/tiny-resolver-rs
- Elixir: https://www.bortzmeyer.org/files/tiny-resolver.tar
You can read more about how this works in A toy DNS resolver