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.
- Client sends domain names separated by
CRLF - Server responds with ip addresses separated by
CRLF
The telnet is good choice for testing.
Due to usage of syscalls, build is only possible on linux systems.
mkdir -p cmake-build && cd cmake-build
cmake -G "Unix Makefiles" .. && makeServer will be available at 127.0.0.1:1337
cmake-build/dns-lookup-server