The first assignment of CUHKSZ course ECE4016
python LocalDNS.py
Query example.com:
dig www.example.com @127.0.0.1 -p 1234
Query baidu.com:
dig www.baidu.com @127.0.0.1 -p 1234
flag = 0 → use public DNS server
flag = 1 → iterative searching
The IP of all servers passed during iterative search
Cache hits and updates