under /src
sudo python3 main.py
to start this dns server (running at 127.0.0.1)
use
sudo python3 dnsrelay [-d][-dd] [public-server] [local-cache]
to enter debug mode
use
dig your-domain @127.0.0.1
or
sudo chmod +x dig.sh && ./dig.sh
to test this server
-
Blacklisted website:find '0.0.0.0' in local ip cache, return 'Domain do not exist.'
-
server & relay server:
-
debug level 1:
sudo python3 dnsrelay
output: ip -
debug level 2:
sudo python3 dnsrelay -d [public-server] [local-cache]
: output ip, time -
debug level 3:
sudo python3 -dd [public-server]
output ip, dns answer message content -
Multi-client concurrency & timeout processing