我正在Ubuntu Desktop 18中(通过VirtualBox)创建一个apache Web 服务器。我刚刚安装了DNSmasq,但应用程序无法正常工作。
这些是错误:
我还检查了端口,但我什至不知道哪个进程正在使用我的端口 53:
如果您能帮助我,我将不胜感激。
编辑
PD:在网络部分,在 VirtualBox 中,我使用的是桥接适配器,也许它是相关的......
systemd-resolver已绑定到端口 53,因此dnsmasq无法使用它。
如果你确定你需要dnsmasq,你首先需要像这样禁用这个 systemd 服务:
systemctl stop systemd-resolver
systemctl disable systemd-resolver
然后开始dnsmasq应该工作。
如果不想停止 systemd-resolver,可以更改 dnsmasq 使用的端口
port=<port>在 /etc/dnsmasq.conf 中添加/编辑systemctl restart dnsmasq