intercept and proxy dns in very sample way
Proxy all Dns Request But Specific Domains
example.com 127.0.0.1
test.example.com 192.168.1.1 2404:6800:4008:c06::6a
if request domain does not in the hosts.conf, it will be proxy by other dns server, default is 8.8.8.8
go get github.com/ti/dnsgo
sudo dnsgo -c hosts.conf -proxy 8.8.8.8 -log true
- github.com/miekg/dns