Adguard Home Dns on Debian Armbian
Contents
Guide to Change DNS for AdGuard Home (192.168.1.5) on Debian/Armbian and Apply to Docker 🐋
Step 1: Configure AdGuard Home DNS Settings 🌐
-
Access AdGuard Home Dashboard:
- Open a web browser and go to:
http://192.168.1.5:3000
- Open a web browser and go to:
-
Log in to your account.
-
Navigate to DNS Settings:
- Go to Settings > DNS settings.
-
Configure DNS Forwarding:
- Add public DNS servers (if needed), e.g.,
- Primary:
8.8.8.8
(Google) - Secondary:
1.1.1.1
(Cloudflare)
- Primary:
- Add public DNS servers (if needed), e.g.,
-
Save your changes.
Step 2: Change DNS on Debian/Armbian 🖥️
Method 1: Edit /etc/resolv.conf
- Open Terminal.
- Edit the resolv.conf file:
sudo nano /etc/resolv.conf
- Add the following line:
nameserver 192.168.1.5
- Save and exit:
PressCTRL + X
, thenY
, and hitEnter
.
Method 2: Using /etc/network/interfaces:
If using /etc/network/interfaces
:
- Open Terminal.
- Edit the interfaces file:
sudo nano /etc/network/interfaces
- Add or modify the DNS setting:
dns-nameservers 192.168.1.5
- Save and exit.
- Restart networking service:
sudo systemctl restart networking
Step 3: Configure Docker to Use AdGuard Home DNS 🐳
-
Edit Docker daemon configuration:
sudo nano /etc/docker/daemon.json
-
Add or modify the following line if you have changed the Docker default folder before:
{ "data-root": "/mnt/docker", "dns": ["192.168.1.5"] }
- Make sure to include the
"dns"
setting if you want to configure DNS as well. - The
"data-root": "/mnt/docker"
specifies the location where you changed the Docker data directory.
- Make sure to include the
-
Save and exit:
PressCTRL + X
, thenY
, and hitEnter
.If docker have
-
Restart Docker:
sudo systemctl restart docker
Step 4: Verify DNS Settings in Docker Containers ✅
- Run a test container:
docker run --rm busybox nslookup google.com
- Check the output:
Ensure it shows192.168.1.5
as the DNS server.
Conclusion 🎉
You have successfully changed the DNS settings for AdGuard Home and applied them to your Debian/Armbian system and Docker! Now enjoy enhanced ad-blocking and DNS filtering!