小编Ric*_*ins的帖子

nslookup 失败,但 systemd 解决的工作

这是我花了一整天的奇怪问题。如果有人能对此有所了解,那就太好了。

该问题表现为名称解析问题,但我不确定这是根本原因:

# host www.google.com
;; connection timed out; no servers could be reached
Run Code Online (Sandbox Code Playgroud)

到目前为止很无聊,但是等等!:

#systemd-resolve www.google.com
www.google.com: 209.85.202.103
                209.85.202.106
                209.85.202.105
                209.85.202.104
                209.85.202.147
                209.85.202.99
Run Code Online (Sandbox Code Playgroud)

很简单,是resolv.conf的问题吧?

# This file is managed by man:systemd-resolved(8). Do not edit.
#
# 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

search xxx.uk xyz
Run Code Online (Sandbox Code Playgroud)

那么系统使用的是systemd解析器吗?

#dig @127.0.0.53 www.google.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> @127.0.0.53 www.google.com
; (1 server found)
;; global options: +cmd
;; connection …
Run Code Online (Sandbox Code Playgroud)

dns ubuntu systemd resolv.conf

4
推荐指数
1
解决办法
4056
查看次数

标签 统计

dns ×1

resolv.conf ×1

systemd ×1

ubuntu ×1