How to Block a TLD but Allow Specific Domains in Windows DNS Server?

0
16
Asked By TechieNinja42 On

I'm currently managing our internal DNS server and have successfully blocked the .CN top-level domain (TLD) using DNS filtering. I used a command like "Add-DnsServerQueryResolutionPolicy -Name 'Block_CN_TLD' -Action DENY -Fqdn 'EQ,*.cn' -PassThru" which works well. However, we've encountered a situation where we need to allow exceptions for CRL/OCSP requests to Digicert domains (like OCSP.DIGICERT.CN). I'm curious if anyone has experience with blocking a complete TLD while still allowing access to specific fully qualified domain names (FQDNs), whether through filter policies or alternative methods.

3 Answers

Answered By AdminPro On

I've handled something similar with dnsdist. I configured specific spoof records for the TLD denial, with the DNS Admin domain set as a bypass pool. This way, dnsdist managed the DNS queries efficiently, though it might not be directly applicable with standard Microsoft tools.

Answered By NetworkGuru88 On

Blocking TLDs like that is tricky; it might be easier to handle this at the firewall level. Have you considered using a Geo-IP filter instead?

SystemSleuth -

Definitely! Blocking at the firewall saves a lot of hassle with logs and stats management.

FirewallFanatic -

Yeah, managing it from the firewall is usually much simpler. We switched to that and it helped a lot!

Answered By DNSWhizKid On

One method I've used is to create a blank zone for the TLD and then set up conditional forwarding for any specific subdomains you need.

CuriousTechie -

That sounds reasonable! I was under the impression that using filtering policies was the way Microsoft recommended, but this seems like it might simplify things.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.