首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >运行本地dns服务器,该服务器将dns查询转发到不同的dns命名服务器。

运行本地dns服务器,该服务器将dns查询转发到不同的dns命名服务器。
EN

Server Fault用户
提问于 2013-04-27 09:03:07
回答 2查看 317关注 0票数 5

我想运行我自己的本地dns -服务器,它只转发一些dns-查询到特殊的dns-服务器和所有其他公共谷歌dns服务器。

本地DNS-Server的数据库不应该缓存查询。

例如:所有带有*.go.com到192.95.16.109的子域,以及google的所有其他子域

EN

回答 2

Server Fault用户

发布于 2013-04-27 09:11:57

DNSMasq做得很好。

这是一个相当轻的DNS服务器。

看起来像这样的配置可能接近您想要的。

代码语言:javascript
复制
# go.com requests
server=/go.com/192.95.16.109
# all other requests
server=8.8.8.8
server=8.8.4.4
票数 6
EN

Server Fault用户

发布于 2013-04-27 11:04:30

对于类似的设置,我一直很满意。

它可以被配置为禁用缓存,这样它就可以执行您想要的操作:

www.unbound.net/documentation/unbound.conf.html

您可以将*.go.com配置为正向区域。

我从这里开始:https://calomel.org/unbound_dns.html

前向区域配置:

代码语言:javascript
复制
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.
票数 3
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/503125

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档