新增 53 埠被占用
31
53-%E5%9F%A0%E8%A2%AB%E5%8D%A0%E7%94%A8.md
Normal file
31
53-%E5%9F%A0%E8%A2%AB%E5%8D%A0%E7%94%A8.md
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# 1. 取消註解 DNSStubListener 並設定為 no
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo nano /etc/systemd/resolved.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
[Resolve]
|
||||||
|
#DNS=
|
||||||
|
#FallbackDNS=
|
||||||
|
#Domains=
|
||||||
|
#LLMNR=no
|
||||||
|
#MulticastDNS=no
|
||||||
|
#DNSSEC=no
|
||||||
|
#DNSOverTLS=no
|
||||||
|
#Cache=yes
|
||||||
|
DNSStubListener=no
|
||||||
|
#ReadEtcHosts=yes
|
||||||
|
```
|
||||||
|
|
||||||
|
# 2. 重新建立捷徑
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
# 3. 重新啟動系統服務
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo systemctl restart systemd-resolved
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user