[Share Experiences] systemd-resolve 服务开启了, 但是找不到命令? Resolved
Tofloor
poster avatar
安全第一
deepin
2023-02-07 03:19
Author

大家好

deepin20.8自带这个服务 , 我开启后, 发现找不到命令 , 这是什么原因呢 ?

system.jpg

Reply Favorite View the author
All Replies
忘记、过去
deepin
2023-02-07 04:10
#1

截图_deepin-terminal_20230206200928.png

这个东西似乎不在 $PATH 里面,直接执行肯定找不到命令。试试写完整路径

Reply View the author
fax928
deepin
Q&A Team
2023-02-07 04:11
#2

我这边20.8和V23alpha也是未找到命令,服务手动启动了。

Reply View the author
安全第一
deepin
2023-02-08 04:41
#3
fax928

我这边20.8和V23alpha也是未找到命令,服务手动启动了。

deepin大概不需要这个 , deepin里面的这个也是不完整的 ,所以找不到那个命令.

ls /etc/systemd/system/multi-user.target.wants/

deepin里好像用的是pppd-dns ,不知道为什么留着systemd-resolved.service , 而且pppd-dns也没有start . 所以尚不知道deepin的dns是哪个程序负责

Reply View the author
136******27
deepin
2023-11-20 05:45
#4

~$ sudo systemctl status systemd-resolved
● systemd-resolved.service - Network Name Resolution
Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2023-11-19 08:44:40 EST; 6min ago
Docs: man:systemd-resolved.service(8)
man:org.freedesktop.resolve1(5)
https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
Main PID: 22781 (systemd-resolve)
Status: "Processing requests..."
Tasks: 1 (limit: 4613)
Memory: 4.5M
CGroup: /system.slice/systemd-resolved.service
└─22781 /lib/systemd/systemd-resolved

所以啊這個就是:

/lib/systemd/systemd-resolved

运行即可!

~$ sudo /lib/systemd/systemd-resolved --help
/lib/systemd/systemd-resolved [OPTIONS...]

Provide name resolution with caching using DNS, mDNS, LLMNR.

This program takes no positional arguments.

Options:
-h --help Show this help
--version Show package version
--bus-introspect=PATH Write D-Bus XML introspection data

Reply View the author