-4

我正在Ubuntu Desktop 18中(通过VirtualBox)创建一个apache Web 服务器。我刚刚安装了DNSmasq,但应用程序无法正常工作。

这些是错误:

错误

我还检查了端口,但我什至不知道哪个进程正在使用我的端口 53:

网络统计

如果您能帮助我,我将不胜感激。

编辑

lsof

PD:在网络部分,在 VirtualBox 中,我使用的是桥接适配器,也许它是相关的......

4

2 回答 2

0

systemd-resolver已绑定到端口 53,因此dnsmasq无法使用它。

如果你确定你需要dnsmasq,你首先需要像这样禁用这个 systemd 服务:

 systemctl stop systemd-resolver
 systemctl disable systemd-resolver

然后开始dnsmasq应该工作。

于 2018-08-31T16:29:18.327 回答
0

如果不想停止 systemd-resolver,可以更改 dnsmasq 使用的端口

  • port=<port>在 /etc/dnsmasq.conf 中添加/编辑
  • 然后systemctl restart dnsmasq
于 2021-12-09T05:17:30.607 回答