Advanced

How To Check The Filtering Status

Since our filter is DNS-based, the best way to check the filtering is the nslookup command. Here you will find the checking methods for different platforms.

Please note that settings take 5-7 minutes to apply.
Stats and filtering status update every 10 minutes.


Windows

Take a look at the video guide.

  1. Open the "Start" menu
  2. Type "cmd"
  3. Select the suggested application - Command Prompt
  4. Enter and run the command nslookup -q=txt black.safedns.com or nslookup -q=txt black.safedns.com 127.0.0.1 if you are using the SafeDNS Agent

To check via IPv6 (if it was set up), use the command nslookup -q=txt black.safedns.com 2001:67c:2778::3939

Correct results should show your external IP address ("ip"), policy ID ("p"), and also SafeDNS Agent ID ("t") in case it is installed. If you see the results similar to screenshot 01, it means that the filtering is active.

If the "p":0, check if the IP address in the Dashboard > Settings > Devices is added correctly.

1.How To Check The Filtering Status .png

If you see the results similar to screenshot 02, it means that the filtering is not configured, and the primary and secondary DNS servers on your device or router are set up incorrectly. Please check your DNS settings.

2.How To Check The Filtering Status .png


Linux

  1. Navigate to "Menu"
  2. Run the "Terminal" app
  3. Enter and run the command host -t txt black.safedns.com

To check via IPv6 (if it was set up), use the command nslookup -q=txt black.safedns.com 2001:67c:2778::3939

Correct results should show your external IP address ("ip"), policy ID ("p"), and also SafeDNS Agent ID ("t") in case it is installed. If you see the results similar to screenshot 03, it means that the filtering is active.

If the "p":0, check if the IP address in the Dashboard > Settings > Devices is added correctly.

3.How To Check The Filtering Status .png

If you see the results similar to screenshot 04, it means that the filtering is not configured, and the primary and secondary DNS servers on your device or router are set up incorrectly. Please check your DNS settings.

4.How To Check The Filtering Status .png


Mac

  1. Launch "Spotlight" with ⌘ + SPACE or by clicking on the magnifying glass in your menu
  2. Search for and launch the "Terminal" app
  3. Enter and run the command host -t txt black.safedns.com

To check via IPv6 (if it was set up), use the command nslookup -q=txt black.safedns.com 2001:67c:2778::3939

Correct results should show your external IP address ("ip"), policy ID ("p"), and also SafeDNS Agent ID ("t") in case it is installed. If you see the results similar to screenshot 05, it means that the filtering is active.

If the "p":0, check if the IP address in the Dashboard > Settings > Devices is added correctly.

5.How To Check The Filtering Status .png

If you see the results similar to screenshot 06, it means that the filtering is not configured, and the primary and secondary DNS servers on your device or router are set up incorrectly. Please check your DNS settings.

 

6.How To Check The Filtering Status .png

How to Clear DNS Cache

DNS cache refers to the temporary storage of information about previous DNS lookups on a router, machine's OS, or web browser.
Keeping a local copy of a DNS lookup allows your router, OS, or browser to quickly retrieve it and thus a domain can be resolved to its corresponding IP much more efficiently.

However, sometimes it can cause a problem when the new filtering settings conflict with the information saved in the cache. Usually, the problem resolves after clearing the cache on a browser level.


Browser level

Chrome, Edge, Opera, Firefox, and many others

Press Ctrl + Shift + Delete simultaneously on the keyboard to open the appropriate window. Select "Cache" and click "Clear".
Please note, that you don't need to delete cookies and saved passwords.

Alternatively, you can use the browser's Settings menu, search for the "cache" setting, and select the suggested option.

Safari
  1. Click on Safari on the top menu bar.
  2. Click Preferences.
  3. Click the Privacy tab.
  4. Click Manage Website Data...
  5. Click Remove All.
  6. Click Remove Now.
  7. Go to the Safari menu on the top menu bar.
  8. Select Quit to close Safari and save your changes.
iOS, iPadOS

Safari browser:
1. Go to Settings (the app with the gear icon).
2. Scroll down until you see Safari. Tap it.
3. Press Clear History and Website Data.
4. Press Clear History and Data again in the warning notification.

Chrome browser:

1. On your iPhone or iPad, open the Chrome app.
2. At the bottom, press More ...
3. Press History > Clear browsing data.
4. Select Cookies, Site Data and Cached Images and Files.
5. Press Clear browsing data.

Android
  1. Long press on the app in the app menu.
  2. Select App info in the pop-up window.
  3. Press Storage usage in the app's info page.
  4. Press Clear cache.

System level

Windows
  1. Open the Start menu and type cmd.
  2. Right-click on the suggested Command Prompt app and choose the Run as administrator option.
  3. Type ipconfig /flushdns inside the terminal window.
  4. Press Enter.
Mac
  1. Search for the Terminal in the applications list or press CMD+Space.
  2. Enter the following command:
    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  3. Press Enter.
  4. If prompted, type your administrator account password.
  5. Press Enter again to submit your password.
Linux
  1. Search for the Terminal in the applications list or press Ctrl+Alt+T.
  2. Enter the following command:
    sudo systemd-resolve --flush-caches
  3. Press Enter.
  4. If prompted, type your administrator account password.
  5. Press Enter again to submit your password.
iOS, iPadOS, Android
  1. Turn Airplane mode on
  2. Reboot device
  3. Turn Airplane mode off

Router level

Reboot the router using the router's interface.

Alternatively, turn the router off by pressing its power button, wait for 15 seconds, and turn the router back on.

How to troubleshoot access to domains using Network Tools


This guide shows how to troubleshoot the issue when a domain is loading partially or some additional services from the main domain are not accessible.


Prerequisites:

Browser with the support of the Developers Tools. All popular modern browsers have this feature.


How to troubleshoot:

Start the browser and press F12, or go to Menu > Tools > Browser Tools > Web Developer Tools.

Path to the Developer Tools might be different in various browser

Navigate to the Network Tab. The list below shows all the items from the page that were loaded or blocked.
The list will be empty if the Network tab is opened after the page is loaded. In this case, refresh the page.

The HTTP status can have different values, including:

Using these statuses, you can identify the blocked domain.


Example:

FBCDN.NET_blocked.png

The access to facebook.com is not blocked, and the Facebook logo has been loaded.
However, all other data on the page was not loaded, because it is located on the blocked fbcdn.net domain.

To unblock this domain, please check its category here: https://www.safedns.com/check/
After that, navigate to the SafeDNS Dashboard and unblock that category.

If you want to keep the category blocked, you can add this domain to Allowlist instead.

How to check domain category

You can always check your domain category here.

Agent Unattended Installation

New Agent, versions 1.4.1+ (Windows only)

Installation

To initialize the unattended installation, run the installer with /verysilent switch in the command line.

You can use the additional keys:

Keys from the old Agent will be added in the subsequent releases.

Uninstallation

To initialize the unattended uninstallation, run the uninstaller with /verysilent switch in the command line.


Old Agent, versions 2.6.0.0 – 3.4.1.5

To initialize the unattended installation, run the installer with /S switch in the command line (S must be uppercase).

You can use the additional keys:

 

Don't enclose options containing whitespace characters in quotation marks (i.e. /prof=My policy).


Old Agent, special version for Active Directory

This version supports all commands above and one additional key:

SafeDNS and Active Directory

This guide explains how to set up the SafeDNS service in the Active Directory environment both with the SafeDNS Agent and in the Dashboard.

Installation of the Special Version of SafeDNS Agent

We've built the Special Version of the SafeDNS Agent, that can be used in the AD environment and networks with any local non-public DNS records.

Overall, it is the same version of the usual Agent with the same set of features. The only difference is that it works with your local DNS server or AD server directly, and not with the SafeDNS servers. Therefore, all non-public DNS/AD resources will be available by default, without any additional action.

⤵Download the Special Version of the Agent.

Manual Setup in the Dashboard

Another way to gain access to AD resources is to use special options available on Office/Enterprise plans.

You must add SafeDNS DNS-servers addresses - 195.46.39.39 and 195.46.39.40 - to the DNS forwarder on your Primary Domain Controller (and secondary, if applicable), so all devices in a filtered network receive SafeDNS IP addresses as the DNS. After this you need to add your external IP address to the dashboard.

Navigate to Dashboard -> Settings -> Devices and add your external IP in the section "IP addresses/DynDNS".

1.SafeDNS and Active Directory .png

Grant access to local resources.

1. Navigate to Dashboard -> Settings -> Advanced -> Active Directory.

2. Enter and add your AD domain in the form.

2.SafeDNS and Active Directory .png

3. Enter and add the name of the PDC (Primary Domain Controller) and its IP address in the local network.

3.SafeDNS and Active Directory .png

4. Add secondary domain controllers, if applicable. You can change the PDC by clicking on the pencil icon on the right.

4.SafeDNS and Active Directory .png

5. Set aliases for all required local resources in the Aliases table below. Enter the name of a local resource and its local IP address.5.SafeDNS and Active Directory .png

6. Wait about 5-7 minutes until all local resources become accessible.

 

Please note that settings take 5-7 minutes to apply.
Stats and filtering status update every 10 minutes.

Web Filtering Bypass Prevention

Common recommendations:

  1. Block the Proxies & Anonymizers category.
  2. Block the Firefox/Chrome Secure DNS feature in the VPN and Proxy section of AppBlocker.
  3. Make sure that all of your users have restricted operating system rights. If a user has no administrator rights, it will be impossible for them to delete the SafeDNS Agent, install any VPN/proxy, change the "hosts" file, or change the DNS server in the network settings.
  4. Prohibit access to any other DNS. If devices connect to the internet via a gateway or router, prohibit access to all DNS servers, except the SafeDNS public DNS servers. We recommend excluding the 195.46.39.0/24 network as well, as this is a whole SafeDNS network. If you are using a caching server in your corporate network, exclude its address instead.
  5. Prohibit access to HTTP proxies. To do that, restrict packet transfer to all IP addresses by TCP and UDP protocols on ports 3128 and 8080 in the firewall settings of your router.
  6. Prohibit access to DNS over TLS. To do that, restrict packet transfer to all IP addresses, except SafeDNS network 195.46.39.0/24, on TCP port 853.
  7. Disable IPv6 protocol. Even though SafeDNS does support IPv6 addresses, we generally recommend disabling this protocol on your router or in the network settings of your device. Please note, that this will not have any effect on the quality of your internet connection.

Recommendations for system administrators:

 
  1. Set up DNS requests rerouting to the SafeDNS public DNS server or to the caching server of your corporate network.
  2. Prohibit access to any external proxy servers.
  3. Restrict direct access to any website via its IP address.
  4. Restrict connection to unknown external VPN servers.
  5. Restrict running any unknown application.
  6. Restrict using any unknown hardware.

DD Client Setup

This guide explains how to install ddclient software in the case when you have a Dynamic IP address and your router does not have a Dynamic DNS feature.

Before you start

Redirect your DNS requests to our DNS server as described in:

Windows 7 DNS setup guide (Steps 1-6).
Windows 10 DNS setup guide (Steps 1-6).


Install and configure DDclient software

1.DD Client Setup Guide .png

  1. Install DDclient (download link).
  2. Click "Next" until your reach the "Select Dynamic DNS server" window (see screenshot above).
  3. Enter any preferred name in the "Client hostname" field.
  4. Enter www.safedns.com in the "Dynamic DNS server".
  5. Select HTTPS in the "Connection".
  6. Select dyndns2 in the "Dynamic DNS protocol".
  7. Enter your SafeDNS account login in the "Dynamic DNS username".
  8. Enter your SafeDNS password in the "Dynamic DNS password".
  9. Continue clicking "Next" until the setup process is finished.

After the installation

Check if the IP address is successfully bound to service in the ddclient.log file. There should be a line like this:

SUCCESS: updating my computer name: good: IP address set to 18.26.28.10

On Windows 10 you can find the log file here:

On Windows 7:

On Windows XP:

If the log file is correct, the DD Client table in Dashboard > Settings > Devices (link) will be updated automatically.

2.DD Client Setup Guide .png

 

Please note that settings take 5-7 minutes to apply.
Stats and filtering status update every 10 minutes.

DNS-over-TLS Setup

The goal of the DNS-over-TLS protocol is to increase user privacy and security by preventing eavesdropping and manipulation of DNS data via man-in-the-middle attacks. With DoT, the content and response of the DNS query are encrypted.

Using this feature the SafeDNS service can identify users by their public IP address only. This feature does not work with the SafeDNS Agent or the SafeDNS VPN solution.

Before you start, please open your SafeDNS Dashboard > Settings > Devices. Enter your public IP address in the "Enter an IP address or DynDNS" field and click the "Add" button.

1.DNS-over-TLS Setup Guide .png


Windows 10

1. Download and install a Stubby .msi package.

2. Run the Windows Command Prompt as administrator:

2.DNS-over-TLS Setup Guide .png

3. Go to the Stubby directory using the Command Prompt and open stubby.yml configuration file with Notepad:

3.DNS-over-TLS Setup Guide .png

4. Set settings following the example below:

resolution_type: GETDNS_RESOLUTION_STUB
dns_transport_list: GETDNS_TRANSPORT_TLS
tls_authentication: GETDNS_AUTHENTICATION_NONE tls_query_padding_blocksize: 128
edns_client_subnet_private: 0
idle_timeout: 100000
listen_addresses: - 127.0.0.1@53
round_robin_upstreams: 1
upstream_recursive_servers:
- address_data: 195.46.39.41
tls_auth_name: "dns-s.safedns.com"                                             tls_pubkey_pinset:
- digest: "sha256"
value: kbv1ODr8gP7FV9/h2lp5t3sP4TdYZEwqUYj0mk0IBzg=

5. Run the following command to replace the default DNS server with a local Stubby:

PowerShell -ExecutionPolicy bypass -file  "C:\Program Files\Stubby\stubby_setdns_windows.ps1"

6. Run the stubby.bat file

4.DNS-over-TLS Setup Guide .png

7. Check the filtering.


Linux (Ubuntu)

1. Install the Stubby package from a repository:

$ sudo apt install stubby

2. Set the configuration file /etc/stubby/stubby.yml as follows:

resolution_type: GETDNS_RESOLUTION_STUB
dns_transport_list: - GETDNS_TRANSPORT_TLS
tls_authentication: GETDNS_AUTHENTICATION_NONE
tls_query_padding_blocksize: 128
edns_client_subnet_private : 0
idle_timeout: 100000
listen_addresses: - 127.0.0.2@53
round_robin_upstreams: 1
upstream_recursive_servers:
- address_data: 195.46.39.41
tls_auth_name: "dns-s.safedns.com"                                               tls_pubkey_pinset:
- digest: "sha256"
value: kbv1ODr8gP7FV9/h2lp5t3sP4TdYZEwqUYj0mk0IBzg=

3. Change DNS in /etc/resolv.conf file to 127.0.0.2:

nameserver 127.0.0.2

4. Start the filtering service

service stubby start

5. Check the filtering.


MacOS

1. Download and install the Stubby Manager package.

If you get a security alert, click on "Open Anyway" in the security settings.

5.DNS-over-TLS Setup Guide .png

2. Launch a Stubby Manager app after installation and click the "Advanced" button.

6.DNS-over-TLS Setup Guide .png

3. Set the configuration file as follows:

resolution_type: GETDNS_RESOLUTION_STUB
dns_transport_list: - GETDNS_TRANSPORT_TLS
tls_authentication: GETDNS_AUTHENTICATION_NONE
tls_query_padding_blocksize: 128
edns_client_subnet_private : 0
idle_timeout: 100000
listen_addresses: - 127.0.0.1@53
round_robin_upstreams: 1
upstream_recursive_servers:
- address_data: 195.46.39.41
tls_auth_name: "dns-s.safedns.com"                                                       tls_pubkey_pinset:
- digest: "sha256"
value: kbv1ODr8gP7FV9/h2lp5t3sP4TdYZEwqUYj0mk0IBzg=

4. Apply the settings and click "Start".

5. Open "Network Properties" and set 127.0.0.1 as the DNS server.

7.DNS-over-TLS Setup Guide .png

6. Check the filtering.

SafeDNS Root Certificate For HTTPS Pages

About the certificate

Root certificate or SSL certificate is the main part of the website security. SSL certificate is required for the correct operation of sites with a secure (HTTPS) connection. If you have issues with displaying the SafeDNS block page (your internet browser shows a message "Unable to access the site"), you need to download a SafeDNS certificate and configure it to use in your browser.

Please note that the certificate should be installed on each end device where you want HTTPS pages to display correctly.

⤵Download SafeDNS certificate

If the browser starts installing the certificate after you click on the button, cancel it, right-click on the button and choose "Save as…"


Windows (Chrome, Edge, Opera browsers)

For Mozilla Firefox, see the next section.

1. Open the Start menu, type in 'Control Panel', and open the suggested app.

1.SafeDNS Root Certificate For HTTPS Pages.png

2. Open Internet Options.

2.SafeDNS Root Certificate For HTTPS Pages.png

3. Navigate to the Content tab and click Certificates.

3.SafeDNS Root Certificate For HTTPS Pages.png

4. Navigate to the Trusted Root Certification Authorities tab, and click Import.

4.SafeDNS Root Certificate For HTTPS Pages.png

5. Click Next in Certificate Import Wizard.

5.SafeDNS Root Certificate For HTTPS Pages.png

6. Click Browse and select a downloaded SafeDNS certificate file.


6.SafeDNS Root Certificate For HTTPS Pages.png

7. Make sure that the certificate is placed in the store Trusted Root Certification Authorities.

7.SafeDNS Root Certificate For HTTPS Pages.png

8. Close the window by clicking on Finish.

8.SafeDNS Root Certificate For HTTPS Pages.png

9. Click on Yes when Security Warning appears.

9.SafeDNS Root Certificate For HTTPS Pages.png

10. Close Certificate Import Wizard by clicking OK.

10.SafeDNS Root Certificate For HTTPS Pages.png


Mozilla Firefox (all platforms)

1. Click on the Menu button in the top right corner of the browser and select Settings.

2. Choose Privacy & Security in the left menu, scroll to the bottom of the page, and click View Certificates.

11.SafeDNS Root Certificate For HTTPS Pages.png

3. Select the Authorities tab and click Import.

12.SafeDNS Root Certificate For HTTPS Pages.png

4. Select the downloaded SafeDNS Certificate, tick the box Trust this CA to identify websites, and click OK.


Mac OSX

1. Press the hotkey CTRL + SPACE and type 'Keychain' in the Spotlight search. Open the Keychain Access application.

13.SafeDNS Root Certificate For HTTPS Pages.png

2. Navigate to Login > System.14.SafeDNS Root Certificate For HTTPS Pages.png


3. Drag and drop the downloaded SafeDNS certificate on the right side of the Keychain Access application where the rest of the certificates are stored.

4. Double-click on the SafeDNS certificate and select Properties certificate. In the opened window, choose when to use this certificate, and select 'Always trust'. Close the window.

15.SafeDNS Root Certificate For HTTPS Pages.png

5. Make sure that the SafeDNS certificate is marked as trusted for this account in the Keychain Access application.

16.SafeDNS Root Certificate For HTTPS Pages.png


iPhone and iPad

1. Download the SafeDNS certificate.

2. Allow the website to open Settings.

17.SafeDNS Root Certificate For HTTPS Pages.png

3. Tap Install.


18.SafeDNS Root Certificate For HTTPS Pages.png

4. Tap on Install in the system warning window.

19.SafeDNS Root Certificate For HTTPS Pages.png

5. Tap Install in the confirmation window.

20.SafeDNS Root Certificate For HTTPS Pages.png

6. Tap Done.

21.SafeDNS Root Certificate For HTTPS Pages.png

7. Navigate to Settings > General > About > Certificate Trust Settings
8. Enable full trust for the SafeDNS Root CA certificate
IMG_0500.PNG


Android

Menu items and the system interface might be different on your device.

1. Open the Settings app.

2. Start typing "certificate" in the search box.

3. Choose the option related to the certificate installation, a new window will open.

4. Choose "Install certificates from storage".

22.SafeDNS Root Certificate For HTTPS Pages.png

5. Press "CA certificate".

23.SafeDNS Root Certificate For HTTPS Pages.png

6. Follow the on-screen instructions to install the certificate.


Chromebooks and Google Workspace

In case the .crt certificate is not accepted, export it as a .pem file and import it into Workspace Admin.


Troubleshooting

If you don't see the block page on HTTPS pages after the certificate installation, or there is a browser warning about an invalid certificate, please, try reinstalling the certificate.

If the issue remains, ⤵contact our technical support team