mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
优化 DNS 配置参数
This commit is contained in:
+2
-1
@@ -102,6 +102,8 @@ $ sudo tee /etc/systemd/resolved.conf.d/10-server-dns.conf >/dev/null <<'EOF'
|
|||||||
DNS=127.0.0.1
|
DNS=127.0.0.1
|
||||||
DNS=::1
|
DNS=::1
|
||||||
DNSStubListener=no
|
DNSStubListener=no
|
||||||
|
LLMNR=no
|
||||||
|
MulticastDNS=no
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -436,7 +438,6 @@ no-hosts
|
|||||||
no-ident
|
no-ident
|
||||||
no-resolv
|
no-resolv
|
||||||
no-round-robin
|
no-round-robin
|
||||||
rebind-localhost-ok
|
|
||||||
stop-dns-rebind
|
stop-dns-rebind
|
||||||
rebind-domain-ok=/fox.internal/
|
rebind-domain-ok=/fox.internal/
|
||||||
|
|
||||||
|
|||||||
+4
-3
@@ -443,6 +443,8 @@ $ sudo tee /etc/systemd/resolved.conf.d/10-server-dns.conf >/dev/null <<'EOF'
|
|||||||
DNS=127.0.0.1
|
DNS=127.0.0.1
|
||||||
DNS=::1
|
DNS=::1
|
||||||
DNSStubListener=no
|
DNSStubListener=no
|
||||||
|
LLMNR=no
|
||||||
|
MulticastDNS=no
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -519,9 +521,8 @@ no-hosts
|
|||||||
no-ident
|
no-ident
|
||||||
no-resolv
|
no-resolv
|
||||||
no-round-robin
|
no-round-robin
|
||||||
rebind-localhost-ok
|
|
||||||
stop-dns-rebind
|
stop-dns-rebind
|
||||||
rebind-domain-ok=/fox.internal/
|
rebind-domain-ok=/fox.internal/ts.net/
|
||||||
|
|
||||||
# DNS Filter
|
# DNS Filter
|
||||||
|
|
||||||
@@ -539,8 +540,8 @@ local=/test/
|
|||||||
|
|
||||||
# DNS Server
|
# DNS Server
|
||||||
|
|
||||||
server=/ts.net/100.100.100.100
|
|
||||||
server=/fox.internal/172.16.1.1
|
server=/fox.internal/172.16.1.1
|
||||||
|
server=/ts.net/100.100.100.100
|
||||||
server=172.16.1.1
|
server=172.16.1.1
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ no-hosts
|
|||||||
no-ident
|
no-ident
|
||||||
no-resolv
|
no-resolv
|
||||||
no-round-robin
|
no-round-robin
|
||||||
rebind-localhost-ok
|
|
||||||
stop-dns-rebind
|
stop-dns-rebind
|
||||||
rebind-domain-ok=/fox.internal/
|
rebind-domain-ok=/fox.internal/
|
||||||
|
|
||||||
|
|||||||
@@ -19,9 +19,8 @@ no-hosts
|
|||||||
no-ident
|
no-ident
|
||||||
no-resolv
|
no-resolv
|
||||||
no-round-robin
|
no-round-robin
|
||||||
rebind-localhost-ok
|
|
||||||
stop-dns-rebind
|
stop-dns-rebind
|
||||||
rebind-domain-ok=/fox.internal/
|
rebind-domain-ok=/fox.internal/ts.net/
|
||||||
|
|
||||||
# DNS Filter
|
# DNS Filter
|
||||||
|
|
||||||
@@ -39,7 +38,7 @@ local=/test/
|
|||||||
|
|
||||||
# DNS Server
|
# DNS Server
|
||||||
|
|
||||||
server=/ts.net/100.100.100.100
|
|
||||||
server=/fox.internal/172.16.1.1
|
server=/fox.internal/172.16.1.1
|
||||||
|
server=/ts.net/100.100.100.100
|
||||||
server=172.16.1.1
|
server=172.16.1.1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user