sudo lsof -i :53
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dnsmasq 1664 lxc-dnsmasq 6u IPv4 16640 0t0 UDP DESKTOP-:domain
dnsmasq 1664 lxc-dnsmasq 7u IPv4 16641 0t0 TCP DESKTOP-:domain (LISTEN)
dnsmasq 1803 libvirt-dnsmasq 5u IPv4 19554 0t0 UDP DESKTOP-:domain
dnsmasq 1803 libvirt-dnsmasq 6u IPv4 19555 0t0 TCP DESKTOP-:domain (LISTEN)
systemd-r 193652 systemd-resolve 14u IPv4 1071243 0t0 UDP _localdnsstub:domain
systemd-r 193652 systemd-resolve 15u IPv4 1071244 0t0 TCP _localdnsstub:domain (LISTEN)
systemd-r 193652 systemd-resolve 16u IPv4 1071245 0t0 UDP _localdnsproxy:domain
systemd-r 193652 systemd-resolve 17u IPv4 1071246 0t0 TCP _localdnsproxy:domain (LISTEN)
建议优先用systemd-resolve
,支持DoH、DoT。而dnsmasq也不能完全卸载,因为libvirtd的虚拟网络模块仍然依赖它。
临时的先停用吧,以便adguard能继续配置
sudo systemctl stop libvirtd libvirtd-ro libvirtd-admin lxc-net systemd-resolved.service
在resolve配置中,停用DNSStub
libvirt虚拟机
<network>
<name>default</name>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr0' stp='on' delay='0'/>
<dns>
<forwarder addr='127.0.0.53'/>
</dns>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254'/>
</dhcp>
</ip>
</network>
标签:systemd,resolve,配置,domain,dnsmasq,IPv4,home,adguard,0t0
From: https://www.cnblogs.com/nolca/p/18502293