优化 DNS 配置参数

This commit is contained in:
CallMeR
2026-08-26 00:00:40 +08:00
parent d3715eaf4e
commit 126635206a
4 changed files with 8 additions and 8 deletions
+2 -1
View File
@@ -102,6 +102,8 @@ $ sudo tee /etc/systemd/resolved.conf.d/10-server-dns.conf >/dev/null <<'EOF'
DNS=127.0.0.1
DNS=::1
DNSStubListener=no
LLMNR=no
MulticastDNS=no
EOF
```
@@ -436,7 +438,6 @@ no-hosts
no-ident
no-resolv
no-round-robin
rebind-localhost-ok
stop-dns-rebind
rebind-domain-ok=/fox.internal/
+4 -3
View File
@@ -443,6 +443,8 @@ $ sudo tee /etc/systemd/resolved.conf.d/10-server-dns.conf >/dev/null <<'EOF'
DNS=127.0.0.1
DNS=::1
DNSStubListener=no
LLMNR=no
MulticastDNS=no
EOF
```
@@ -519,9 +521,8 @@ no-hosts
no-ident
no-resolv
no-round-robin
rebind-localhost-ok
stop-dns-rebind
rebind-domain-ok=/fox.internal/
rebind-domain-ok=/fox.internal/ts.net/
# DNS Filter
@@ -539,8 +540,8 @@ local=/test/
# DNS Server
server=/ts.net/100.100.100.100
server=/fox.internal/172.16.1.1
server=/ts.net/100.100.100.100
server=172.16.1.1
```
-1
View File
@@ -19,7 +19,6 @@ no-hosts
no-ident
no-resolv
no-round-robin
rebind-localhost-ok
stop-dns-rebind
rebind-domain-ok=/fox.internal/
+2 -3
View File
@@ -19,9 +19,8 @@ no-hosts
no-ident
no-resolv
no-round-robin
rebind-localhost-ok
stop-dns-rebind
rebind-domain-ok=/fox.internal/
rebind-domain-ok=/fox.internal/ts.net/
# DNS Filter
@@ -39,7 +38,7 @@ local=/test/
# DNS Server
server=/ts.net/100.100.100.100
server=/fox.internal/172.16.1.1
server=/ts.net/100.100.100.100
server=172.16.1.1