Skip to content

Latest commit

 

History

History

relay-dns

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

A Relay DNS Server

Run Server

under /src

sudo python3 main.py

to start this dns server (running at 127.0.0.1)

Debug Mode

use

sudo python3 dnsrelay [-d][-dd] [public-server] [local-cache]

to enter debug mode

Tests

use

dig your-domain @127.0.0.1

or

sudo chmod +x dig.sh && ./dig.sh

to test this server

Others

  • 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