Skip to content

raydzast/dns-proxy

Repository files navigation

About

Simple DNS proxy-server that redirects DNS requests to system call getaddrinfo. The protocol is simple: server accepts continuous list of domain names and sends the lists of ip addresses that relate to above domain names. The server can handle multiple clients simultaneously and there are limits such as: active connections per ip and maximal request size.

Protocol described

  • Client sends domain names separated by CRLF
  • Server responds with ip addresses separated by CRLF

The telnet is good choice for testing.

Build

Due to usage of syscalls, build is only possible on linux systems.

mkdir -p cmake-build && cd cmake-build
cmake -G "Unix Makefiles" .. && make

Run

Server will be available at 127.0.0.1:1337

cmake-build/dns-lookup-server

About

DNS proxy server

Topics

Resources

Stars

Watchers

Forks