Installation and configuring DNS
Using a DNS server installing on a device which has VPN connection (localhost, 127.0.0.1) makes identity of the internal IP (outgoing server) and DNS from the point of view of an external network. One of the most popular caching DNS servers is Unbound.
Installing and starting UnboundThe default config makes Unbound available for localhost. It means that it is enough install and run Unbound only.
# yum install unbound # service unbound start
$ sudo apt-get update $ sudo apt-get install unbound $ sudo service unbound restart
WindowsWindows version is available on the official page. Installation manual: http://unbound.net/documentation/unbound-windows-manual-01.pdf.
LinuxUsually Linux DNS settings saves in
# echo "nameserver 127.0.0.1" > /etc/resolv.conf
WindowsIn Windows it is necessary to set