Skip to content

Commit

Permalink
coredns: disable blocking of bilibili cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
xddxdd committed Jan 11, 2025
1 parent 4c0cd9f commit 1e35db5
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions nixos/common-apps/coredns.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,21 @@ in
cache
}
'';
block = zone: ''
${zone} {
any
prometheus ${config.lantian.netns.coredns-client.ipv4}:${LT.portStr.Prometheus.CoreDNS}
hosts {
0.0.0.0 ${zone}
}
}
'';
# block = zone: ''
# ${zone} {
# any
# prometheus ${config.lantian.netns.coredns-client.ipv4}:${LT.portStr.Prometheus.CoreDNS}
# hosts {
# 0.0.0.0 ${zone}
# }
# }
# '';

cfgEntries =
[
((if config.networking.networkmanager.enable then forwardToResolvConf else forwardToGoogleDNS) ".")
(forwardTo114DNS "kuxi.tech")
(forwardToAzurePrivateDNS "database.azure.com")
(block "upos-sz-mirroraliov.bilivideo.com")
]
# Not working well
# ++ lib.optional config.services.avahi.enable (mdns "local")
Expand Down

0 comments on commit 1e35db5

Please sign in to comment.