Ubuntu 解除systemd-resolved占用53端口

由于需要使用AdGuardHome,系统中systemd-resolved服务直接占用,导致无法实现,通过以下方法解决: systemd-resolved原理:https://www.keepnight.com/archives/1772/ 1. 先停止 systemctl stop systemd

由于需要使用AdGuardHome,系统中systemd-resolved服务直接占用,导致无法实现,通过以下方法解决:

systemd-resolved原理:https://www.keepnight.com/archives/1772/

1. 先停止

systemctl stop systemd-resolved

2. 修改配置文件

vim /etc/systemd/resolved.conf

# 取消注释并修改yes为no

3. 链接

ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

LICENSED UNDER CC BY-NC-SA 4.0
Comment