Pls check if your pc is using encrypted dns or not.
For example, in Windows if you set 8.8.8.8 or 1.1.1.1 it will use encrypted dns, so the domain based policy will not work.