Defender Firewall FQDN filtering - prefer NRPT for broad blocks

Prefer NRPT for DNS namespace blocks to avoid shared-IP fallout from broad Firewall FQDN rules.

For broad domain or TLD blocking, I recommend NRPT rules over Windows Firewall dynamic keyword blocks. Firewall FQDN rules turn matching DNS results into IP-based restrictions, which can affect unrelated names sharing the same address.

I hit this in June 2026: blocking *.cn picked up an Azure Front Door IP after a user visited docs.azure.cn. That IP also served Microsoft portals, so Azure, Entra, and Intune access broke.

Windows Filtering Platform block detail with destination IP 13.107.246.70 and Remote Dynamic Keyword Address set to True.
Original close-up of the blocked connection showing that a dynamic keyword address matched. Historical June 2026 trace; the destination IP and private source address are diagnostic values, not stable configuration guidance.

Azure App Services portal errors beside developer tools showing a failed hosting.portal.azure.net request.
Original June 2026 screenshot showing the portal symptom and the failed hosting endpoint in browser developer tools. Historical June 2026 Azure portal and developer-tools UI

PowerShell showing a Windows Filtering Platform block and a wildcard cn firewall keyword sharing an Azure portal IP address.
Original June 2026 investigation screenshot connecting an Azure portal connection failure to the resolved addresses of a Windows Firewall wildcard rule. Historical June 2026 trace; IP addresses and portal endpoints can change. The final command is an NRPT example, not a universal production configuration.

The Name Resolution Policy Table (NRPT) applies namespace-specific policies in the Windows DNS Client. This keeps the restriction at name resolution instead of adding shared IPs to firewall rules. My thread used this local example in an elevated PowerShell session:

1Add-DnsClientNrptRule -Namespace ".cn" -NameServers "0.0.0.0"

-NameServers sets the DNS server address for matching queries. Here, 0.0.0.0 is intended to make those lookups fail; it is not an address returned in a DNS answer.

That targets the entire .cn namespace. Don’t deploy it blindly: choose the namespace you actually need, check legitimate dependencies, and test in a lab first.

Check existing managed rules and the policy that actually applies:

1Get-DnsClientNrptPolicy -Effective

Domain Group Policy NRPT settings can cause local rules to be ignored. Test the actual applications and network paths you intend to control.

NRPT governs name resolution; it isn’t packet filtering. Direct-IP connections, cached addresses, and applications using their own resolver can avoid this DNS restriction. Keep the appropriate firewall controls alongside it.

NRPT namespaces and policy processing · Add-DnsClientNrptRule · Firewall dynamic keywords and limitations

The screenshots below show my earlier Firewall approach, retained for historical context. They aren’t the recommended approach for broad domain blocks.

Intune Endpoint security Firewall page with Reusable settings and Add highlighted.
Earlier Intune Firewall approach from my 14 May 2023 post. This historical UI is not the current recommendation for broad domain blocks.

Microsoft documentation showing an illustrative outbound FQDN allowlist script and a warning that its domain list is incomplete.
Historical Firewall documentation screenshot from my 20 November 2024 post. This incomplete allowlist example is not a recommendation.

Original posts: 14 May 2023, 20 November 2024, and NRPT follow-up, 10 June 2026. Documentation checked 14 October 2026.

Tuesday, October 13, 2026 Tuesday, November 19, 2024