我想运行我自己的本地dns服务器,只转发一些DNS查询特殊的DNS服务器和所有其他人到公共的谷歌DNS服务器。
本地DNS服务器的数据库不应该caching查询。
例如:* .go.com到192.95.16.109的所有子域名,以及所有其他到google dns的子域名
DNSMasq做得很好。
这是一个相当轻的DNS服务器。
看起来像这样的configuration可能接近你想要的。
# go.com requests server=/go.com/192.95.16.109 # all other requests server=8.8.8.8 server=8.8.4.4
我已经很高兴与一个类似的设置没有约束。
它可以被configuration为禁用caching,因此它可以做你正在寻找的东西:
http://www.unbound.net/documentation/unbound.conf.html
您可以将* .go.comconfiguration为前向区域。
我会从这里开始: https : //calomel.org/unbound_dns.html
前向区域configuration:
name: <domain name> Name of the forward zone. forward-host: <domain name> Name of server to forward to. Is itself resolved before it is used. forward-addr: <IP address> IP address of server to forward to. Can be IP 4 or IP 6. To use a nondefault port for DNS communication append '@' with the port number. forward-first: <yes or no> If enabled, a query is attempted without the forward clause if it fails. The data could not be retrieved and would have caused SERVFAIL because the servers are unreachable, instead it is tried without this clause. The default is no.