https://github.com/tomasfarias/dns-in-a-weekend
My implementation of Julia Evan's Implement DNS in a Weekend in Rust
https://github.com/tomasfarias/dns-in-a-weekend
Last synced: about 2 months ago
JSON representation
My implementation of Julia Evan's Implement DNS in a Weekend in Rust
- Host: GitHub
- URL: https://github.com/tomasfarias/dns-in-a-weekend
- Owner: tomasfarias
- License: mit
- Created: 2023-05-14T17:56:43.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-14T17:57:08.000Z (about 2 years ago)
- Last Synced: 2025-02-04T18:52:32.800Z (4 months ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dns-in-a-weekend
A Rust solution for ['Implement DNS in a weekend' by Julia Evans](https://implement-dns.wizardzines.com).
# Building shovel
The binary implementing DNS resolution is called `shovel`. Build it using `cargo`:
```sh
$ cargo build --release
```# Running shovel
The syntax for running `shovel` is:
```sh
$ shovel [DOMAIN] [QTYPE] [NAMESERVER]
```For example:
```sh
shovel twitter.com A
Querying 198.41.0.4 for twitter.com
Querying 192.12.94.30 for twitter.com
Querying 198.41.0.4 for a.r06.twtrdns.net
Querying 192.12.94.30 for a.r06.twtrdns.net
Querying 205.251.195.207 for a.r06.twtrdns.net
Querying 205.251.192.179 for twitter.com
Resolved twitter.com: 104.244.42.65
```