Total Pageviews

Monday 30 November 2015

dnsproxy 是用 golang写 的一款 dns proxy

稳定性、效率都属上乘,还有详细的 log 供跟踪排错使用,经测试效率比 pdnsd 要高出一截.
DNS Filtering proxy and minimalistic nameserver in GO
  • Recurse only A, AAAA, CNAME records (onlyipq)
  • Filter on domain suffix (suffixes)
  • Filter on returned IP (ipfilter)
  • Swap NXDOMAIN with static A response and set TTL (swapnxdip, swapnxdttl)
  • Hosts file lookup for static (override) entries 
Based on DNS library (github.com/miekg/dns)

Installation

  • Install golang, set GOPATH, get dependent libraries -- go get github.com/miekg/dns -- go get github.com/BurntSushi/toml
  • Build application -- go build -o dnsproxy *.go
See dnsproxy.conf for examples

from https://github.com/dmagyar/dnsproxy