Test your DNS Proxy using PowerShell

Most company’s have a policy to block dangerous websites for employees. Pornography, hate, gambling, social media are all categories that should be blocked. Either, they are big time wasters, or may be required by law to be blocked.

Although you may have your proxy turned on correctly, that does not mean the bill got paid. Usually, a proxy will default to open for all users. You may be asked by outside 3rd party auditor’s or a senior manager to provide proof that the DNS proxy is actually working and blocking non-approved content.

This PowerShell script will run as the current logged on user and send an email with the results. You will need to provide a list of websites in text document with one URL per line. I have included one below, as an example.

Save this file as a ‘websitelist.txt’ file.

Related Posts