我正在一个承载Windows域的网络上运行一个Ubuntu18.04桌面工作站。Windows域服务器为本地服务器提供DNS解析,但并不总是为远程服务器提供精确的DNS解析。这意味着,如果我将一个非域DNS服务器作为我的主服务器(比如Google的8.8.8.8),我可以解析web服务器,但不能解析本地服务器。如果我把域控制器作为我的主要DNS服务器,我可以解析本地服务器,但不能解析一些web服务器(特别是AWS Cloudfront端点)。
以Google作为主控制器,域控制器作为辅助的示例:
nslookup localserver
Server: 8.8.8.8
Address: 8.8.8.8#53
** server can't find localserver: NXDOMAIN在主DNS服务器无法解析DNS名称的情况下,是否有方法获得DNS解析以检查辅助DNS服务器?
发布于 2018-06-05 19:09:02
中可以看到当前配置的DNS服务器列表。
/run/systemd/resolve/resolv.conf如果它不包含所需的DNS服务器,请尝试添加更多的DNS服务器,在IPV4选项卡IPV4 DNS设置下的网络设置中以逗号分隔。
如果这不起作用,您可以直接在/etc/systemd/sorved.conf中设置回退DNS。
这是一个样本:
# 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=yeshttps://askubuntu.com/questions/1043908
复制相似问题