https://github.com/hyouteki/dnsfwdr
Simple DNS forwarder
https://github.com/hyouteki/dnsfwdr
c dns-forwarder
Last synced: 3 months ago
JSON representation
Simple DNS forwarder
- Host: GitHub
- URL: https://github.com/hyouteki/dnsfwdr
- Owner: hyouteki
- License: gpl-3.0
- Created: 2024-05-12T17:09:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-17T12:19:25.000Z (about 1 year ago)
- Last Synced: 2025-02-13T06:01:44.005Z (3 months ago)
- Topics: c, dns-forwarder
- Language: C
- Homepage:
- Size: 172 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> Simple DNS Forwarder
> [!IMPORTANT]
> Work In Progress ...## Todo
- [ ] concurrent connections
- [ ] mapping response to client
- [ ] caching
- [ ] support for falling back to different dns server## Demo
> DNS forwarding server> The client requests the DNS forwarding server (running at localhost:8989) to resolve the address of the domain name "www.google.com"
## Quick start
- Build the project using `make`
- Run the DNS forwarding server using `./server`
- Test the server using a dummy client via `make client`## References
- [Coding Challenges - Build Your Own DNS Forwarder](https://codingchallenges.fyi/challenges/challenge-dns-forwarder)
- [RFC 1035 Section 4.1.1 - DNS query format](https://datatracker.ietf.org/doc/html/rfc1035#section-4.1)
- [Hash functions - sdbm](http://www.cse.yorku.ca/~oz/hash.html)