Activating CleanBrowsing on your Linux is pretty simple. Our instructions here cover all distributions, including Ubuntu, RedHat, CentOS, etc.
Tech talk: CleanBrowsing is a DNS-based filter that prevents adult content from being loaded. It doesn’t require any software installation and can be easily enabled anywhere by switching your DNS servers to the ones we provide. We also offer Apps for the major devices in order to simplify your life.
Step 1: Overview
Linux keeps your Nameserver configuration stored at the file /etc/resolv.conf. It is used across all Linux distributions, so if you edit that file you will modify the default nameserver for the system. Any text editor is fine, as long as you have root (admin) permissions. Note that if you are using a DHCP client, it may try to override your changes with the ones by your DHCP server. You can try to edit the dhcp client configuration to prevent the change or set the resolv.conf file as immutable.
We found that no dhcp client configuration is the same, so setting the /etc/resolv.conf as immutable after you change is likely the easier route – with no side effects on any system we have done so.
Step 2: Change the DNS
The easiest way to change the file /etc/resolv.conf is via the terminal and using the echo command to append your changes in there. Open your terminal and run:
sudo echo 'nameserver 126.96.36.199' > /etc/resolv.conf
That will force all your interfaces to go through CleanBrowsing (188.8.131.52). If it works, you won’t get any warning or error in the terminal.
As a bonus point, you can run the chattr command to set that file as immutable, so it can’t be modified any anyone else:
sudo chattr +i /etc/resolv.conf
That’s it. Your Linux server is configured.