ubuntu中53端口被占用导致dnsmasq无法使用。已解决。
方案一:修改参数,但不影响使用
编辑配置文件
vim /etc/systemd/resolved.conf
将此参数修改为:
DNSStubListener=no
重启服务
sudo systemctl daemon-reload
sudo systemctl disable systemd-resolved.service
方案一:直接禁用
编辑配置文件
vim /etc/systemd/resolved.conf
将此参数修改为:
LLMNR=0
停止服务
systemctl stop systemd-resolved.service
禁用服务
systemctl disable systemd-resolved.service