Hurricane Electric's IPv6 Tunnel Broker Forums Specific Topics => Questions & Answers => Topic started by: DJX on October 25, 2017, 07:52:47 AM

Title: Windows Server 2016 DNS Filter for Netflix and others
Post by: DJX on October 25, 2017, 07:52:47 AM
As many are aware, Netflix does not allow its customers to stream through HE.
I tried a few different approaches to force machines over to IPv4.
My final solution was to filter out AAAA records from DNS queries.
If anyone else out there has Server 2016, here is an example PowerShell command that you can run against a server running DNS:

Add policy:
Code: [Select]
Add-DnsServerQueryResolutionPolicy -Name "Filter AAAA Requests" -action deny -fqdn "EQ,*" -QType "EQ,AAAA
Verify policy:
Code: [Select]
Get-DnsServerQueryResolutionPolicy -Name "Filter AAAA Requests" | fl
$Policy = Get-DnsServerQueryResolutionPolicy -Name "Filter AAAA Requests"

You can also modify an existing policy to add or remove domains if you find other services not working correctly over IPv6:

Code: [Select]
Set-DnsServerQueryResolutionPolicy -Name "Filter AAAA Requests" -fqdn "EQ,*,*,*" -QType "EQ,AAAA"