Unbound is a validating, recursive, and caching DNS resolver. It is designed to be fast, simple, and secure. In this tutorial, we will show you how to install Unbound on Linux Mint.
Before we begin, ensure you have the following in place:
sudo apt update
sudo apt install unbound
sudo systemctl start unbound
sudo systemctl enable unbound
sudo systemctl status unbound
If everything is working as expected, you should see a status message stating that the service is active and running.
The Unbound configuration file is located at /etc/unbound/unbound.conf
. You can modify this file to set custom options and configurations.
Here's an example configuration file with some common options:
server:
interface: 0.0.0.0
access-control: 10.0.0.0/8 allow
access-control: 192.168.0.0/16 allow
access-control: 172.16.0.0/12 allow
do-tcp: yes
do-udp: yes
root-hints: "/etc/unbound/root.hints"
remote-control:
control-enable: yes
control-interface: 127.0.0.1
control-port: 8953
This configuration specifies the following options:
interface
: The interface to bind to.access-control
: IP addresses allowed to connect to the server.do-tcp
: Enable TCP support.do-udp
: Enable UDP support.root-hints
: Specify the root zone file.remote-control
: Allow control commands from the local interface.If you make any changes to the configuration file, restart the Unbound service to apply them.
sudo systemctl restart unbound
You have successfully installed Unbound on Linux Mint Latest and can now use it as your DNS resolver. Further, you know how to modify the configuration file to suit your needs.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!