mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-19 12:47:27 +02:00
Compare commits
6 Commits
813878a4de
...
9375b3c2b2
Author | SHA1 | Date | |
---|---|---|---|
9375b3c2b2 | |||
2aa221b77f | |||
652c11391f | |||
d3773468fa | |||
a083a9d704 | |||
30a27f980d |
3
etc/opt/chromium/policies/managed/doh-disabled.json
Normal file
3
etc/opt/chromium/policies/managed/doh-disabled.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"DnsOverHttpsMode": "off"
|
||||||
|
}
|
4
etc/opt/chromium/policies/managed/doh-google.json
Normal file
4
etc/opt/chromium/policies/managed/doh-google.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"DnsOverHttpsMode": "automatic",
|
||||||
|
"DnsOverHttpsTemplates": "https://dns.google/dns-query"
|
||||||
|
}
|
@ -10,11 +10,13 @@ server:
|
|||||||
rrset-cache-size: 50m
|
rrset-cache-size: 50m
|
||||||
# nxdomain cache, default 1m
|
# nxdomain cache, default 1m
|
||||||
neg-cache-size: 10m
|
neg-cache-size: 10m
|
||||||
# Cache results for 15 minutes even if they had a shorter TTL. Cloudflare
|
# Increases TTL of all queries to 900 seconds (5 minutes) if upstream has
|
||||||
# zone export used to have 1 second, and I have also been seeing 1
|
# a lower one. I have been using this since August 2019 without issues.
|
||||||
# minute in the wild, I think 5 mins shouldn't break anything, but bigger
|
#cache-min-ttl: 900
|
||||||
# might.
|
# https://blog.apnic.net/2019/11/12/stop-using-ridiculously-low-dns-ttls/
|
||||||
cache-min-ttl: 900
|
# dares setting the minimum cache to something between 40 minute and 60,
|
||||||
|
# so how about 50 minutes? However it predates RFC 8767.
|
||||||
|
cache-min-ttl: 3000
|
||||||
# Update cache for popular items before they expire. ~10 % traffic
|
# Update cache for popular items before they expire. ~10 % traffic
|
||||||
# increase according to `man unbound.conf`
|
# increase according to `man unbound.conf`
|
||||||
prefetch: yes
|
prefetch: yes
|
||||||
@ -23,6 +25,16 @@ server:
|
|||||||
# Allow expired results to be served if they are in cache. The cache will
|
# Allow expired results to be served if they are in cache. The cache will
|
||||||
# get updated the next time.
|
# get updated the next time.
|
||||||
serve-expired: yes
|
serve-expired: yes
|
||||||
|
# Serve expired data up to one day (RFC 8767)
|
||||||
|
serve-expired-ttl: 86400
|
||||||
|
# If serving expired data to client, explicitly give it TTL 30 seconds
|
||||||
|
serve-expired-reply-ttl: 30
|
||||||
|
# Serve expired data to client if there is no answer in 1.8 seconds as per
|
||||||
|
# common timeout 2 seconds according to the RFC 8767
|
||||||
|
#serve-expired-client-timeout: 1800
|
||||||
|
# However my /etc/resolv.conf timeout is 1 second since all my nameservers
|
||||||
|
# are localhost, so let's wait 0.8 seconds instead.
|
||||||
|
serve-expired-client-timeout: 800
|
||||||
# DNSSEC errors for valid and expired records
|
# DNSSEC errors for valid and expired records
|
||||||
ede: yes
|
ede: yes
|
||||||
ede-serve-expired: yes
|
ede-serve-expired: yes
|
||||||
|
34
etc/unbound/unbound.conf.d/dot-cloudflare.conf
Normal file
34
etc/unbound/unbound.conf.d/dot-cloudflare.conf
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
server:
|
||||||
|
# Debian ca-certificates location
|
||||||
|
#tls-cert-bundle: /etc/ssl/certs/ca-certificates.crt
|
||||||
|
# ctrl.blog says this is the Fedora location
|
||||||
|
#tls-cert-bundle: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
|
||||||
|
# Use system certificates no matter where they are
|
||||||
|
tls-system-cert: yes
|
||||||
|
# Quad9 says pointless performance impact on forwarders.
|
||||||
|
# https://docs.quad9.net/Quad9_For_Organizations/DNS_Forwarder_Best_Practices/#disable-qname-minimization
|
||||||
|
qname-minimisation: no
|
||||||
|
|
||||||
|
forward-zone:
|
||||||
|
name: "."
|
||||||
|
forward-tls-upstream: yes
|
||||||
|
|
||||||
|
# Default / unfiltered
|
||||||
|
#forward-addr: 2606:4700:4700::1111@853#cloudflare-dns.com
|
||||||
|
#forward-addr: 2606:4700:4700::1001@853#cloudflare-dns.com
|
||||||
|
#forward-addr: 1.1.1.1@853#cloudflare-dns.com
|
||||||
|
#forward-addr: 1.0.0.1@853#cloudflare-dns.com
|
||||||
|
|
||||||
|
# Malware blocking
|
||||||
|
forward-addr: 2606:4700:4700::1112@853#security.cloudflare-dns.com
|
||||||
|
forward-addr: 2606:4700:4700::1002@853#security.cloudflare-dns.com
|
||||||
|
forward-addr: 1.1.1.2@853#security.cloudflare-dns.com
|
||||||
|
forward-addr: 1.0.0.2@853#security.cloudflare-dns.com
|
||||||
|
|
||||||
|
# Malware and adult content blocking
|
||||||
|
#forward-addr: 2606:4700:4700::1113@853#family.cloudflare-dns.com
|
||||||
|
#forward-addr: 2606:4700:4700::1003@853#family.cloudflare-dns.com
|
||||||
|
#forward-addr: 1.1.1.3@853#family.cloudflare-dns.com
|
||||||
|
#forward-addr: 1.0.0.3@853#family.cloudflare-dns.com
|
||||||
|
|
||||||
|
# vim: filetype=unbound.conf
|
Loading…
x
Reference in New Issue
Block a user