Linux Mint 19本地DNS解析问题

Linux Mint 19本地DNS解析问题,dns,linux-mint,Dns,Linux Mint,在使用Ubuntu一段时间后,我安装了Linux Mint 19 我有一个带有子域的本地域, 我可以ping mydomain.local 但我不能用域名ping或访问我的子域 我的DNS服务器IP=10.0.0.4 下面是使用resolvconf生成的my/etc/resolv.conf: 这里是my/run/systemd/resolve/stub-resolv.conf: 请帮帮我。我不是造币专家,不知道我是否能帮上忙,但我一定会试试。。。在支持论坛中有点“盲目引导盲目”:/ 我最近安装了

在使用Ubuntu一段时间后,我安装了Linux Mint 19

我有一个带有子域的本地域, 我可以ping mydomain.local

但我不能用域名ping或访问我的子域

我的DNS服务器IP=10.0.0.4

下面是使用resolvconf生成的my/etc/resolv.conf:

这里是my/run/systemd/resolve/stub-resolv.conf:


请帮帮我。

我不是造币专家,不知道我是否能帮上忙,但我一定会试试。。。在支持论坛中有点“盲目引导盲目”:/

我最近安装了Mint 19,但我遇到的唯一DNS问题是由systemd的解析器引起的。从那以后,我用unbound替换了它

我按照这家伙的指示做了,效果非常好。YMMV

tl;dr:使用systemd resolve,LLMNR用于短名称解析,它不会故障切换到规范化DNS解析。LLMNR尝试了几次,然后在不接触DNS的情况下失败了

我认为它有一个严重的缺陷,TBQH-其他人同意。Systemd的分解器以一种出乎意料的、可能违反标准的方式运行,已经运行了3-4年


HTH:D

我发现了问题,它位于文件/etc/nsswitch.conf的以下行中:

hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname
备注:dns位于[NOTFOUND=return]部分之后,这就是dns解析不正确的原因,因此我所做的是将dns移动到[NOTFOUND=return]部分之前,现在一切都很好

# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 10.0.0.4
hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname