mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 22:12:51 +08:00
更新 Dnsmasq 配置
This commit is contained in:
+5
-4
@@ -420,6 +420,8 @@ $ sudo nvim /etc/dnsmasq.conf
|
|||||||
|
|
||||||
**额外说明:**
|
**额外说明:**
|
||||||
|
|
||||||
|
- 请根据系统内存使用情况,调整缓存参数 `cache-size`
|
||||||
|
|
||||||
- 配置文件中内网域名为 `fox.home.arpa` ,请根据实际情况进行调整
|
- 配置文件中内网域名为 `fox.home.arpa` ,请根据实际情况进行调整
|
||||||
|
|
||||||
- `Dnsmasq` 有且仅有 `SmartDNS` 作为上游 DNS 服务器
|
- `Dnsmasq` 有且仅有 `SmartDNS` 作为上游 DNS 服务器
|
||||||
@@ -436,18 +438,17 @@ conf-file=/etc/dnsmasq.conf
|
|||||||
log-facility=/var/log/dnsmasq.log
|
log-facility=/var/log/dnsmasq.log
|
||||||
log-async=20
|
log-async=20
|
||||||
|
|
||||||
cache-size=0
|
cache-size=2048
|
||||||
dns-forward-max=300
|
max-cache-ttl=21600
|
||||||
|
fast-dns-retry=1800
|
||||||
edns-packet-max=1232
|
edns-packet-max=1232
|
||||||
rebind-domain-ok=/fox.home.arpa/
|
rebind-domain-ok=/fox.home.arpa/
|
||||||
|
|
||||||
bind-dynamic
|
bind-dynamic
|
||||||
bogus-priv
|
bogus-priv
|
||||||
domain-needed
|
domain-needed
|
||||||
localise-queries
|
|
||||||
local-service
|
local-service
|
||||||
no-hosts
|
no-hosts
|
||||||
no-negcache
|
|
||||||
no-resolv
|
no-resolv
|
||||||
no-round-robin
|
no-round-robin
|
||||||
rebind-localhost-ok
|
rebind-localhost-ok
|
||||||
|
|||||||
+5
-4
@@ -490,6 +490,8 @@ $ sudo nvim /etc/dnsmasq.conf
|
|||||||
|
|
||||||
**额外说明:**
|
**额外说明:**
|
||||||
|
|
||||||
|
- 请根据系统内存使用情况,调整缓存参数 `cache-size`
|
||||||
|
|
||||||
- 配置文件中内网域名为 `fox.home.arpa` ,请根据实际情况进行调整
|
- 配置文件中内网域名为 `fox.home.arpa` ,请根据实际情况进行调整
|
||||||
|
|
||||||
- `Dnsmasq` 上游 DNS 服务器分为三类,请根据实际情况进行调整
|
- `Dnsmasq` 上游 DNS 服务器分为三类,请根据实际情况进行调整
|
||||||
@@ -509,18 +511,17 @@ conf-file=/etc/dnsmasq.conf
|
|||||||
log-facility=/var/log/dnsmasq.log
|
log-facility=/var/log/dnsmasq.log
|
||||||
log-async=20
|
log-async=20
|
||||||
|
|
||||||
cache-size=0
|
cache-size=2048
|
||||||
dns-forward-max=300
|
max-cache-ttl=21600
|
||||||
|
fast-dns-retry=1800
|
||||||
edns-packet-max=1232
|
edns-packet-max=1232
|
||||||
rebind-domain-ok=/fox.home.arpa/
|
rebind-domain-ok=/fox.home.arpa/
|
||||||
|
|
||||||
bind-dynamic
|
bind-dynamic
|
||||||
bogus-priv
|
bogus-priv
|
||||||
domain-needed
|
domain-needed
|
||||||
localise-queries
|
|
||||||
local-service
|
local-service
|
||||||
no-hosts
|
no-hosts
|
||||||
no-negcache
|
|
||||||
no-round-robin
|
no-round-robin
|
||||||
rebind-localhost-ok
|
rebind-localhost-ok
|
||||||
stop-dns-rebind
|
stop-dns-rebind
|
||||||
|
|||||||
@@ -9,18 +9,17 @@ conf-file=/etc/dnsmasq.conf
|
|||||||
log-facility=/var/log/dnsmasq.log
|
log-facility=/var/log/dnsmasq.log
|
||||||
log-async=20
|
log-async=20
|
||||||
|
|
||||||
cache-size=0
|
cache-size=2048
|
||||||
dns-forward-max=300
|
max-cache-ttl=21600
|
||||||
|
fast-dns-retry=1800
|
||||||
edns-packet-max=1232
|
edns-packet-max=1232
|
||||||
rebind-domain-ok=/fox.home.arpa/
|
rebind-domain-ok=/fox.home.arpa/
|
||||||
|
|
||||||
bind-dynamic
|
bind-dynamic
|
||||||
bogus-priv
|
bogus-priv
|
||||||
domain-needed
|
domain-needed
|
||||||
localise-queries
|
|
||||||
local-service
|
local-service
|
||||||
no-hosts
|
no-hosts
|
||||||
no-negcache
|
|
||||||
no-resolv
|
no-resolv
|
||||||
no-round-robin
|
no-round-robin
|
||||||
rebind-localhost-ok
|
rebind-localhost-ok
|
||||||
|
|||||||
@@ -9,18 +9,17 @@ conf-file=/etc/dnsmasq.conf
|
|||||||
log-facility=/var/log/dnsmasq.log
|
log-facility=/var/log/dnsmasq.log
|
||||||
log-async=20
|
log-async=20
|
||||||
|
|
||||||
cache-size=0
|
cache-size=2048
|
||||||
dns-forward-max=300
|
max-cache-ttl=21600
|
||||||
|
fast-dns-retry=1800
|
||||||
edns-packet-max=1232
|
edns-packet-max=1232
|
||||||
rebind-domain-ok=/fox.home.arpa/
|
rebind-domain-ok=/fox.home.arpa/
|
||||||
|
|
||||||
bind-dynamic
|
bind-dynamic
|
||||||
bogus-priv
|
bogus-priv
|
||||||
domain-needed
|
domain-needed
|
||||||
localise-queries
|
|
||||||
local-service
|
local-service
|
||||||
no-hosts
|
no-hosts
|
||||||
no-negcache
|
|
||||||
no-round-robin
|
no-round-robin
|
||||||
rebind-localhost-ok
|
rebind-localhost-ok
|
||||||
stop-dns-rebind
|
stop-dns-rebind
|
||||||
|
|||||||
Reference in New Issue
Block a user