我想运行我自己的本地dns -服务器,它只转发一些dns-查询到特殊的dns-服务器和所有其他公共谷歌dns服务器。
本地DNS-Server的数据库不应该缓存查询。
例如:所有带有*.go.com到192.95.16.109的子域,以及google的所有其他子域
发布于 2013-04-27 09:11:57
DNSMasq做得很好。
这是一个相当轻的DNS服务器。
看起来像这样的配置可能接近您想要的。
# go.com requests
server=/go.com/192.95.16.109
# all other requests
server=8.8.8.8
server=8.8.4.4发布于 2013-04-27 11:04:30
对于类似的设置,我一直很满意。
它可以被配置为禁用缓存,这样它就可以执行您想要的操作:
www.unbound.net/documentation/unbound.conf.html
您可以将*.go.com配置为正向区域。
我从这里开始:https://calomel.org/unbound_dns.html
前向区域配置:
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.https://serverfault.com/questions/503125
复制相似问题