📎 AI Summary:
The forum thread discusses an issue where a user tried to block and then unblock a domain via DNS server query resolution policies in Windows. Despite removing the policy and waiting several days, the blocked domain remains inaccessible, and cache clearing attempts haven't resolved the issue. Other users suggest checking both DNS server and client hosts files and clearing DNS caches; however, the original poster indicates the problem persists beyond these steps, implying the need for further troubleshooting.

elhanan

New Member
Joined
Nov 5, 2021
Messages
3
Thread Author #1
Hello there, I added some domain name to be blocked in my network and I used the following command to do that:
Add-DnsServerQueryResolutionPolicy -Name "BlockListPolicy" -Action IGNORE -FQDN "EQ,*.somedomain.com" -PassThru
After I have done that in powershell that domain is filtered out not to be accessed. But after a moment I wanted to allow it so I executed the following command:
Remove-DnsServerQueryResolutionPolicy -Name "BlockListPolicy" -PassThru

I restarted my DNS Server, and still that website cannot be accessed. Can someone help me with this please...
 

Solution
I would make sure you clear the DNS cache on the client side with Clear-DNSClientCache.
Removing the policy can take a very long time depending on how many zones and any other policies. (as in days some times).
You can also flush the DNS server cache with Clear-DNSServerCache.

Otherwise I'd look at wireshark and filter on DNS.

Varadharajan K

Well-Known Member
Joined
May 22, 2020
Messages
46
Check the names are added in hosts file under system32\drivers\etc\hosts
 

elhanan

New Member
Joined
Nov 5, 2021
Messages
3
Thread Author #3
Check the names are added in hosts file under system32\drivers\etc\hosts
Hello thanks for your reply, DNS server's hosts file or my own PC hosts file? cause I didn't set that in my PC but I don't know about the DNS Server if the policy by default do that.
 

Varadharajan K

Well-Known Member
Joined
May 22, 2020
Messages
46
Check in both dns server pc and your own pc
 

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
I would make sure you clear the DNS cache on the client side with Clear-DNSClientCache.
Removing the policy can take a very long time depending on how many zones and any other policies. (as in days some times).
You can also flush the DNS server cache with Clear-DNSServerCache.

Otherwise I'd look at wireshark and filter on DNS.
 

Solution

elhanan

New Member
Joined
Nov 5, 2021
Messages
3
Thread Author #6
I only have 8 Zones and its been already 5 days since I removed the policy. I tried Clear-DNSServerCache(I didn't restarted the dns server though in case that might be the case) it still not working.
 

daintycloud

New Member
Joined
Dec 1, 2021
Messages
1
You just need to edit the system's hosts file like @Varadharajan mentioned above.