From 8aca2df56115740a30a0ce984f727955e510ee29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=BB=E7=B5=B1=E7=AE=A1=E7=90=86=E5=93=A1?= Date: Fri, 6 Mar 2026 06:14:26 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=2053=20=E5=9F=A0=E8=A2=AB?= =?UTF-8?q?=E5=8D=A0=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 53-%E5%9F%A0%E8%A2%AB%E5%8D%A0%E7%94%A8.md | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 53-%E5%9F%A0%E8%A2%AB%E5%8D%A0%E7%94%A8.md diff --git a/53-%E5%9F%A0%E8%A2%AB%E5%8D%A0%E7%94%A8.md b/53-%E5%9F%A0%E8%A2%AB%E5%8D%A0%E7%94%A8.md new file mode 100644 index 0000000..5f93a87 --- /dev/null +++ b/53-%E5%9F%A0%E8%A2%AB%E5%8D%A0%E7%94%A8.md @@ -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 +``` \ No newline at end of file