首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当主服务器无法解决时故障转移DNS?

当主服务器无法解决时故障转移DNS?
EN

Ask Ubuntu用户
提问于 2018-06-05 18:50:03
回答 1查看 5.4K关注 0票数 2

我正在一个承载Windows域的网络上运行一个Ubuntu18.04桌面工作站。Windows域服务器为本地服务器提供DNS解析,但并不总是为远程服务器提供精确的DNS解析。这意味着,如果我将一个非域DNS服务器作为我的主服务器(比如Google的8.8.8.8),我可以解析web服务器,但不能解析本地服务器。如果我把域控制器作为我的主要DNS服务器,我可以解析本地服务器,但不能解析一些web服务器(特别是AWS Cloudfront端点)。

以Google作为主控制器,域控制器作为辅助的示例:

代码语言:javascript
复制
nslookup localserver
Server:     8.8.8.8
Address:    8.8.8.8#53

** server can't find localserver: NXDOMAIN

在主DNS服务器无法解析DNS名称的情况下,是否有方法获得DNS解析以检查辅助DNS服务器?

EN

回答 1

Ask Ubuntu用户

发布于 2018-06-05 19:09:02

中可以看到当前配置的DNS服务器列表。

代码语言:javascript
复制
/run/systemd/resolve/resolv.conf

如果它不包含所需的DNS服务器,请尝试添加更多的DNS服务器,在IPV4选项卡IPV4 DNS设置下的网络设置中以逗号分隔。

如果这不起作用,您可以直接在/etc/systemd/sorved.conf中设置回退DNS。

这是一个样本:

代码语言:javascript
复制
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details

[Resolve]
#DNS=
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#Cache=yes
#DNSStubListener=yes
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1043908

复制
相关文章

相似问题

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