https://github.com/veggiedefender/dns
toy recursive DNS resolver that does its own parsing and socket communication, just for fun
https://github.com/veggiedefender/dns
Last synced: about 1 month ago
JSON representation
toy recursive DNS resolver that does its own parsing and socket communication, just for fun
- Host: GitHub
- URL: https://github.com/veggiedefender/dns
- Owner: veggiedefender
- Created: 2022-03-17T17:06:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-17T17:28:45.000Z (over 3 years ago)
- Last Synced: 2025-05-07T16:17:04.466Z (about 1 month ago)
- Language: Python
- Size: 2.93 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dns
toy recursive DNS resolver that does its own parsing and socket communication, just for funimplements some of [rfc 1035](https://datatracker.ietf.org/doc/html/rfc1035) (only does A and MX records)
there's like a million of these out there, and this one is not particularly good, but,
```
$ ./dns.py
A twitter.com: 104.244.42.65
MX google.com: alt1.aspmx.l.google.com.
```inspired by
* https://jvns.ca/blog/2022/02/01/a-dns-resolver-in-80-lines-of-go/
* https://blog.adamchalmers.com/nom-dns/