feat(ada): dnsproxy init
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
parent
f6a3e5e9d7
commit
d03a563188
3 changed files with 63 additions and 52 deletions
43
ada/services/dnsproxy.nix
Normal file
43
ada/services/dnsproxy.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
_: {
|
||||
services = {
|
||||
dnsproxy = {
|
||||
enable = true;
|
||||
settings = {
|
||||
listen-addrs = [
|
||||
"127.0.0.1"
|
||||
"::1"
|
||||
];
|
||||
|
||||
listen-ports = [
|
||||
5353
|
||||
];
|
||||
|
||||
http3 = true;
|
||||
cache = true;
|
||||
cache-size = 4096;
|
||||
all-servers = true;
|
||||
dnssec = true;
|
||||
|
||||
bootstrap = [
|
||||
"1.1.1.1"
|
||||
"8.8.8.8"
|
||||
"9.9.9.9"
|
||||
];
|
||||
|
||||
upstream = [
|
||||
"https://1.1.1.1/dns-query?host=cloudflare-dns.com"
|
||||
"https://1.0.0.1/dns-query?host=cloudflare-dns.com"
|
||||
|
||||
"https://8.8.8.8/dns-query?host=dns.google"
|
||||
"https://8.8.4.4/dns-query?host=dns.google"
|
||||
|
||||
"https://9.9.9.9/dns-query?quad9.net"
|
||||
"https://149.112.112.112/dns-query?host=quad9.net"
|
||||
|
||||
"https://208.67.222.222/dns-query?host=dns.google"
|
||||
"https://208.67.220.220/dns-query?host=dns.google"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue