Not sure if DNS-based Safe Search is working? Use these command-line checks to verify enforcement for Google, Bing, and YouTube on any device.
When Safe Search is enforced via DNS (as CleanBrowsing does), DNS lookups for search engines return special IP addresses or CNAME records that redirect to the safe/restricted version of the service.
For example, a lookup for www.google.com should return a CNAME pointing to forcesafesearch.google.com instead of the normal Google IP.
You can verify this using built-in command-line DNS tools on any operating system.
Open PowerShell and run these commands:
Resolve-DnsName www.google.com | Select-Object Name, Type, IPAddress, NameHost
Resolve-DnsName www.google.com -Type CNAME
Resolve-DnsName www.bing.com | Select-Object Name, Type, IPAddress, NameHost
Resolve-DnsName www.youtube.com | Select-Object Name, Type, IPAddress, NameHost
Open Terminal and run:
dig www.google.com
dig +short www.google.com
dig +short www.bing.com
dig +short www.youtube.com
Look for CNAME records in the ANSWER SECTION of the full dig output.
Use host or dig:
host www.google.com
host www.bing.com
host www.youtube.com
dig +short www.google.com
dig +short www.bing.com
If CleanBrowsing Safe Search enforcement is working, you should see these results:
| Domain | Expected Behavior | IPs / CNAME |
|---|---|---|
www.google.com |
CNAME to forcesafesearch.google.com |
216.239.38.120, 216.239.38.119 |
www.bing.com |
CNAME to strict.bing.com |
204.79.197.220 |
www.youtube.com |
CNAME to restrict.youtube.com |
216.239.38.120, 216.239.38.119 |
Set up DNS-based Safe Search enforcement for Google, Bing, and YouTube.
Flush your DNS cache to ensure new settings take effect.
Answers to frequently asked questions about CleanBrowsing.