小编Civ*_*ing的帖子

为什么 systemd-resolved 不使用我的本地 DNS 服务器?

我正在使用本地 BIND9 服务器来托管一些本地 dns 记录。在尝试挖掘本地域名时,如果我没有明确告诉 dig 使用我的本地 BIND9 服务器,我将无法找到它。

user@heimdal:~$ dig +short heimdal.lan.se
user@heimdal:~$ dig +short @192.168.1.7 heimdal.lan.se
192.168.1.2
Run Code Online (Sandbox Code Playgroud)

使用 Ubuntu 17.04 和 systemd-resolved。这是我的/etc/resolved的内容

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.

nameserver 127.0.0.53
Run Code Online (Sandbox Code Playgroud)

以及 systemd-resolve --status 的输出

Global
         DNS Servers: 192.168.1.7
                      192.168.1.1
          DNSSEC NTA: 10.in-addr.arpa …
Run Code Online (Sandbox Code Playgroud)

ubuntu dns bind dig systemd-resolved

15
推荐指数
2
解决办法
6万
查看次数

标签 统计

bind ×1

dig ×1

dns ×1

systemd-resolved ×1

ubuntu ×1