标签: resolv.conf

通过 systemd 激活单元“dbus-org.freedesktop.resolve1.service”失败:未找到单元 dbus-org.freedesktop.resolve1.service

我正在使用 manjaro/arch linux,我在系统日志中看到以下错误消息。

journalctl -f 
...
dbus-daemon[798]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' requested by ':1.4' (uid=0 pid=799 comm="/usr/bin/>
dbus-daemon[798]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found.
...
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题

linux dns systemd manjaro resolv.conf

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

如何为特定网络接口保留“systemd-resolve”配置?

我已经将我的 Ubuntu 桌面升级到 Bionic Beaver,它切换到systemd-resolve。随着这一变化,LXD DNS 解析停止工作。

为了使 LXD 容器可被发现,我可以运行以下命令。注意,IP 10.78.38.1lxdbr0网桥的 IP 。

$ sudo systemd-resolve --interface lxdbr0 --set-dns 10.78.38.1 --set-domain lxd
Run Code Online (Sandbox Code Playgroud)

有了这个,我可以通过名称发现 LXD 容器,配置如下所示。

$ systemd-resolve --status
.
.
.
Link 10 (lxdbr0)
      Current Scopes: DNS
       LLMNR setting: yes
MulticastDNS setting: no
      DNSSEC setting: no
    DNSSEC supported: no
         DNS Servers: 10.78.38.1
          DNS Domain: lxd
.
.
.
Run Code Online (Sandbox Code Playgroud)

但是,在系统重新启动后,此配置将消失。

$ systemd-resolve --status
.
.
.
Link 10 (lxdbr0)
      Current Scopes: none
       LLMNR setting: yes
MulticastDNS …
Run Code Online (Sandbox Code Playgroud)

networking linux dns ubuntu resolv.conf

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

用linux绑定不同的端口

我有一个 bind9 DNS 服务器,我已将其配置为在端口 55 中运行,但我无法进行设置。服务器工作正常,但我无法调整本地机器以解析来自 127.0.0.1 端口 55 的名称服务器查询

例子:

dig -p 55 a1.mylocalinstance.dip
...
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; QUESTION SECTION:
;a1.mylocalinstance.dip.        IN  A

;; ANSWER SECTION:
a1.mylocalinstance.dip. 10800   IN  A   192.168.1.107

;; AUTHORITY SECTION:
mylocalinstance.dip.    10800   IN  NS  ns.mylocalinstance.dip.

;; ADDITIONAL SECTION:
 ns.mylocalinstance.dip.    10800   IN  A   192.168.1.100

;; Query time: 0 msec
;; SERVER: 127.0.0.1#55(127.0.0.1)
;; WHEN: Fri Dec 18 00:20:54 EET 2015
;; MSG SIZE  rcvd: …
Run Code Online (Sandbox Code Playgroud)

networking linux dns bind resolv.conf

5
推荐指数
1
解决办法
6512
查看次数

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 ×4

resolv.conf ×4

linux ×3

networking ×2

systemd ×2

ubuntu ×2

bind ×1

manjaro ×1