Skip to content

How to Set Up a Local DNS Resolver with Unbound on Rocky Linux 9

Netcloud24
Cloud Infrastructure Expert
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

Introduction

Unbound is a validating, recursive, and caching DNS resolver. This guide will walk you through the process of setting up a local DNS resolver with Unbound on Rocky Linux 9.

Prerequisites

Before you begin, ensure you have:

  1. A Rocky Linux 9 system
  2. Root or sudo privileges

Step 1: Install Unbound

Update the package index and install Unbound:

sudo dnf update
sudo dnf install -y unbound

Step 2: Configure Unbound

Edit the Unbound configuration file:

sudo nano /etc/unbound/unbound.conf

Replace the contents with the following configuration:

server:
    interface: 127.0.0.1
    access-control: 127.0.0.0/8 allow
    verbosity: 1
    logfile: "/var/log/unbound.log"

Step 3: Start Unbound

Start the Unbound service:

sudo systemctl start unbound
sudo systemctl enable unbound

Step 4: Test Unbound

Use the dig command to test Unbound:

dig example.com @127.0.0.1

You should see DNS resolution results for example.com.

Visual overview of How to Set Up a Local DNS Resolver with Unbound on Rocky Linux 9
Visual overview: How to Set Up a Local DNS Resolver with Unbound on Rocky Linux 9

Conclusion

Congratulations! You have successfully set up a local DNS resolver with Unbound on Rocky Linux 9. You can now use Unbound to resolve DNS queries locally.

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Key topics covered in How to Set Up a Local DNS Resolver with Unbound on Rocky Linux 9
Key topics covered in this NetCloud24 guide.

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Windows VPS

Practical checklist for How to Set Up a Local DNS Resolver with Unbound on Rocky Linux 9
Practical checklist for applying the guidance in this article.
How to Set Up a Local DNS Resolver with Unbound on Rocky Linux 9
How to Set Up a Local DNS Resolver with Unbound on Rocky Linux 9
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.