• Contact
  • About Me
  • Privacy Policy
  • Disclaimer
DefenceDev
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
  • Web Tools
No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
  • Web Tools
No Result
View All Result
DefenceDev
No Result
View All Result
ADVERTISEMENT
Home Projects AdGuard

AdGuard Home: Install DNS Server on Ubuntu and Configure It

neo by neo
September 10, 2025
in AdGuard
0
AdGuard Home: Install DNS Server on Ubuntu and Configure It

AdGuard Home: Install DNS Server on Ubuntu and Configure It

0
SHARES
1.7k
VIEWS
Share on FacebookShare on LinkedIn
Table of Contents
  • Introduction
  • Requirements for AdGuard Running on Ubuntu
  • Steps to Install AdGuard Home DNS Server
    • Step 1: Install Ubuntu 22.04 Server and Update It
    • Step 2: Set Static IP for Your Ubuntu Server
    • Step 3: Install AdGuard Home on Ubuntu 22.04
    • Step 4: Continue AdGuard Setup in the Web Browser
    • Step 5: Troubleshooting DNS Activity – Bind Address in Use Error
    • Step 6: Configure Your Username and Password for AdGuard Web Admin Login
  • Next Steps with AdGaurd Home

Introduction

In this article, we will walk through the installation of AdGuard Home DNS Server on Ubuntu 22.04 and the configuration process. I choose this DNS Server running on Ubuntu to protect my network from malicious, phishing, and scam domains.

AdGuard Security Blocklist

The Domain Name System (DNS) is a fundamental component of the Internet and your local network that translates human-readable domain names into IP addresses. It acts like a phone book for the Internet, helping computers and network devices find and communicate with each other.

At this link, you can check Git Repository related to the AdGuard Home.

Requirements for AdGuard Running on Ubuntu

In my environment, the AdGuard Home DNS Server is installed on a Virtual Machine with:

  • Ubuntu 22.04
  • RAM: 2 GB
  • CPU: 1 Processor
  • HDD: 20 GB

There are between 20–60 devices on this network using this DNS server, and I haven’t noticed any lag or issues.

I was not able to find official requiremnts for AdGuard Home

Steps to Install AdGuard Home DNS Server

Step 1: Install Ubuntu 22.04 Server and Update It

Before installing AdGuard Home, update your system to ensure all packages are up-to-date.

sudo apt update && sudo apt upgrade -y

Step 2: Set Static IP for Your Ubuntu Server

Configure a static IP address on your server. Below is an example of how to do this with Netplan.

nano /etc/netplan/00-installer-config.yaml 

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens160:
      addresses:
      - 192.168.10.201/24
      gateway4: 192.168.10.253
      nameservers:
        addresses:
        - 8.8.8.8
        search: []
  version: 2
netplan apply 

If you need more examples of Netplan configuration you can check my article abut it.

Step 3: Install AdGuard Home on Ubuntu 22.04

In this case AdGuard will be downloaded in /opt directory and the install script

ADVERTISEMENT
cd /opt

# Download application
curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v

Output of the installation will be something like:

******                   .
AdGuard Home is now available at the following addresses:
2024/11/30 07:22:47 [info] go to http://127.0.0.1:3000
2024/11/30 07:22:47 [info] go to http://[::1]:3000
2024/11/30 07:22:47 [info] go to http://192.168.10.201:3000

2024/11/30 07:22:47 [info] service: action install has been done successfully on                                                   linux-systemd
AdGuard Home is now installed and running
you can control the service status with the following commands:
sudo /opt/AdGuardHome/AdGuardHome -s start|stop|restart|status|install|uninstall

Step 4: Continue AdGuard Setup in the Web Browser

Open the link (in my case 192.168.10.201:3000/install.html) in your browser and follow the configuration wizard:

AdGuard Home Setup from web browser
AdGuard Home Setup from web browser
AdGuard Home, Bind Address in Use Error
AdGuard Home, Bind Address in Use Error

We need to fix the issue related to the Port 53 usage on the server. We can use suggested fix by AdGuard Support Page.

ADVERTISEMENT

Step 5: Troubleshooting DNS Activity – Bind Address in Use Error

Connect to the Ubuntu Server and check DNS Activity to be sure that there is no other service using the port 53:

# Check activity on Port 53
sudo lsof -i :53
Chek DNS Activity with the command sudo lsof -i :53
Check DNS Activity with the command sudo lsof -i :53

Step 5.1: Create the /etc/systemd/resolved.conf.d directory

sudo mkdir -p /etc/systemd/resolved.conf.d

Step 5.2: Deactivate DNSStubListener and update DNS server address.

Create a new file, /etc/systemd/resolved.conf.d/adguardhome.conf

sudo nano /etc/systemd/resolved.conf.d/adguardhome.conf
# Content of the file
[Resolve]
DNS=127.0.0.1
DNSStubListener=no

5.3 Activate another resolv.conf file:

# Activate resolv.conf file:

sudo mv /etc/resolv.conf /etc/resolv.conf.backup
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

5.4 Restart DNSStubListener:

# Restart DNSStubListener:
sudo systemctl reload-or-restart systemd-resolved

5.5 Start your AdGuard Home Installation Process Again

After refreshing your browser, the error message regarding the “connection “Bind address in use” should disappear.

AdGuard Home FIxed Bind Address in use Issue
AdGuard Home FIxed Bind Address in use Issue

Step 6: Configure Your Username and Password for AdGuard Web Admin Login

Set your username and password that will be used to access the server:

AdGuard Home Setup User Access
AdGuard Home Setup User Access

With this setup, installation and configuration process is completed.

Next Steps with AdGaurd Home

Once you have successfully installed AdGuard Home, you can take the next step and configure it to block different services across your local network. Check out this guide for detailed instructions: AdGuard – Block Different Services on Local Network.

About The Author

neo

See author's posts

Tags: adguard
ADVERTISEMENT
Previous Post

How to Replace a Nextcloud Data Hard Drive on Ubuntu

Next Post

Immich: Installation on Ubuntu 22.04

neo

neo

Related Posts

AdGuard: Block Different Services on the Local Network
AdGuard

AdGuard: Block Different Services on the Local Network

Next Post
Immich: Installation on Ubuntu 22.04

Immich: Installation on Ubuntu 22.04

Recommended

Nextcloud: Solving Common PHP Issues on Ubuntu 22.04

How to Fix Common Nextcloud PHP Issues on Ubuntu 22.04

Self-Hosted Nextcloud Hub 10 on Ubuntu – My Top 5 Apps

Nextcloud: My Top 5 Must-Have Apps

Install Portainer on Ubuntu 24.04 Using Docker Compose

Install Portainer on Ubuntu 24.04 Using Docker Compose

FortiGate Country Address Object Generator – Block or Allow Access by Country

FortiGate Country Address Object Generator – Block or Allow Access by Country

View & Copy Image Metadata Online – Camera & GPS Info

View & Copy Image Metadata Online – Camera & GPS Info

Categories

  • Blog
  • Cloud
    • Private
  • Linux Tutorials
    • Bash Scripting Tutorials
    • Commands
    • Networking
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Solutions
    • Docker
  • Video Tutorials
    • MikroTik Videos
  • Web Tools
ADVERTISEMENT

DefenceDev Tutorials

defencedev Logo

Whether you’re just starting or looking to expand your skills, I hope you find useful information and engaging discussions here. Let me take you through my journey and the goals behind this space!

Follow Us

Recent News

Install Portainer on Ubuntu 24.04 Using Docker Compose

Install Portainer on Ubuntu 24.04 Using Docker Compose

FortiGate Country Address Object Generator – Block or Allow Access by Country

FortiGate Country Address Object Generator – Block or Allow Access by Country

  • Site Map
  • Privacy Policy
  • Facebook Page
  • Disclaimer
  • Contact
  • About Me

© 2025 defencedev.com - All rights reserved.

No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
  • Web Tools

© 2025 defencedev.com - All rights reserved.