dnsserver go 语言实现的本地DNS服务器,负责转发和缓存本地的DNS查询。 安装 git clone https://github.com/donng/dnsserver.git 运行程序: go run *.go 测试结果: dig @localhost www.example.com