DNS settings on Linux
1. Setting DNS of DeepWebVPN on Linux
2. Installing and configuring personal DNS server Unbound
All described below actions have to execute in Linux terminal only.
Commands beginning with the # prompt are executed as the root user, the $ prompt means the execution is from a regular user.
Use commands sudo or su to get the root user rights. For example, enter sudo su to login as root in a desktop Debian-based distros (Ubuntu, Linux Mint and others). And use su in a RedHat-based distros (RHEL, Fedora, CentOS and others) and server Debian-based distros.
1. Setting DNS of DeepWebVPN
DeepWebVPN DNS servers (220.127.116.11 and 18.104.22.168) are working if you are connected to the DeepWebVPN VPN network only. Use another DNS servers for correctly working of the Internet if you are not connected to the DeepWebVPN VPN network.
We recommend to read the project StopWatchingFor.Us to limit unwanted tracking by various trackers from both Web (Google Analytics, Adobe Analytics, Yandex.Metrica and others) and system applications (Microsoft Security Essentials, TeamViewer, Avast, McAfee and others).
DNS settings are saved in the file /etc/resolv.conf in a popular Linux distros. It is enough edit the file to change a DNS servers. Use the next command to set DNS of DeepWebVPN.
# echo "nameserver 22.214.171.124" > /etc/resolv.conf && echo "nameserver 126.96.36.199" >> /etc/resolv.conf
External IP (IP of the last server in a VPN chain) and DNS server IP will be equal after succesfully VPN connecting and setting DNS of DeepWebVPN.
2. Installing and configuring Unbound
External IP and DNS server IP will be equal if using a local installed DNS server (DNS server which IP is 127.0.0.1). The situation will be identical to that when DNS of DeepWebVPN is using, except a personal DNS server can work without VPN.
One of the most popular DNS server is Unbound. Default configuration of Unbound makes the DNS server available for a localhost and fit with avoiding DNS leaks.
Use the next commands to install Unbound on a Debian-based Linux.
$ sudo apt-get update
$ sudo apt-get install unbound
$ sudo service unbound restart
Commands for RedHat-based Linux look like this.
# yum install unbound
# service unbound restart
Commands above not only install Ubound but start it too. As a rule Unbound will automatically start on booting, but it is necessary change the DNS settings to using Unbound.
# echo "nameserver 127.0.0.1" > /etc/resolv.conf