No description
Find a file
2025-11-30 11:06:56 +08:00
benchmark_local.sh test: reduce concurrency count to avoid error 2025-09-10 20:22:28 +08:00
benchmark_remote.sh test: reduce query count for faster test 2025-09-10 20:38:37 +08:00
dns_benchmark.py test: add benchmark for dns relay server 2025-09-10 16:02:48 +08:00
dns_dgram_utils.c fix: response with recursive available 2025-09-18 11:19:31 +08:00
dns_dgram_utils.h fix: response only matched type in question section 2025-09-10 12:32:09 +08:00
dns_relay.c docs: fix wrong comments on size of dns answer 2025-09-16 10:13:11 +08:00
dns_relay.h refactor: rename hosts to mappings 2025-11-30 11:06:56 +08:00
dns_relay_utils.h style: regulate the code 2025-09-11 10:07:33 +08:00
Makefile fix: use O3 instead of Ofast 2025-10-06 12:34:59 +08:00
mappings refactor: rename hosts to mappings 2025-11-30 11:06:56 +08:00
README.md test: add test host file with explanation 2025-09-10 14:28:41 +08:00

dns_relay

This is a simple DNS relay server written in C.

Prerequisites

  • gcc (have tested on 15.2.1)
  • make (have tested on 4.4.1)
sudo apt update
sudo apt install gcc make

Build

This project use Makefile to build

make

Run

(require sudo privilege for port 53)

make run

Test

The host file is in ./hosts, you can modify as your will.

nslookup www.test1.com 127.0.0.1