How to Install Unbound on Linux Mint Latest

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.

Prerequisites

Before we begin, ensure you have the following in place:

Steps

  1. Update the package repository index.

sudo apt update

  1. Install the Unbound package.

sudo apt install unbound

  1. Start the Unbound service.

sudo systemctl start unbound

  1. Enable the Unbound service to start on boot.

sudo systemctl enable unbound

  1. Verify that the Unbound service is running.

sudo systemctl status unbound

If everything is working as expected, you should see a status message stating that the service is active and running.

Configuring Unbound

The Unbound configuration file is located at /etc/unbound/unbound.conf. You can modify this file to set custom options and configurations.

Sample Configuration

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:

Restarting the Unbound Service

If you make any changes to the configuration file, restart the Unbound service to apply them.

sudo systemctl restart unbound

Conclusion

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!