failed to create listening socket for port 53
1
| sudo netstat -anlp | grep -w LISTEN
|
1 2 3 4 5
| ...... tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 735/systemd-resolved ...... tcp6 0 0 :::53 :::* LISTEN 735/systemd-resolved
|
1
| sudo systemctl stop systemd-resolved
|
- 编辑编辑
/etc/systemd/resolved.conf
文件:
1
| sudo vim /etc/systemd/resolved.conf
|
1 2 3 4 5 6 7 8 9
| [Resolve] DNS=8.8.8.8 #取消注释,增加dns #FallbackDNS= #Domains= #LLMNR=no #MulticastDNS=no #DNSSEC=no #Cache=yes DNSStubListener=no #取消注释,把yes改为no
|
1
| sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
|