May 18, 2025

How to Set AdGuard DNS on Ubuntu Linux

mr rockstar

How to Set AdGuard DNS on Ubuntu Linux
Cheap Dedicated Server

Sure! Here’s a blog-style post on how to set up AdGuard DNS on Ubuntu Linux, along with 4 short FAQs and a meta description.


🛡️ How to Set AdGuard DNS on Ubuntu Linux (Step-by-Step)

AdGuard DNS is a free, privacy-focused DNS service that blocks ads, trackers, and malicious websites at the DNS level. If you’re using Ubuntu, setting it up is straightforward and can enhance your browsing privacy and speed. Here’s how to do it in just a few steps.


đź”§ Method 1: Set AdGuard DNS via Network Manager (GUI)

If you’re on Ubuntu Desktop:

  1. Open Settings → Network → Wired/Wi-Fi

  2. Click the ⚙️ Settings icon of your active network.

  3. Go to the IPv4 tab:

    • Set Method to “Automatic (DHCP) addresses only”

    • In DNS, enter:
      In DNS

      94.140.14.14, 94.140.15.15
      
  4. Do the same in the IPv6 tab (optional):
    on the same in the IPv6 tab

    2a10:50c0::ad1, 2a10:50c0::ad2
    
  5. Click Apply and restart your connection.


🖥️ Method 2: Set AdGuard DNS via Terminal (for Ubuntu Server)

If you’re on a server or prefer the terminal:

  1. Open terminal and edit the Netplan config:
    Open terminal and edit the Netplan config

    sudo nano /etc/netplan/*.yaml
    
  2. Under the ethernets: section, add the DNS like this:
    Under the ethernets section, add the DNS like this

    ethernets:
      eth0:
        dhcp4: yes
        nameservers:
          addresses:
            - 94.140.14.14
            - 94.140.15.15
    

    Replace eth0 with your actual network interface name if different.

  3. Save and apply changes:

    sudo netplan apply
    

🔄 Verify the DNS is Active

Run:

systemd-resolve --status

Or:

dig google.com

Check if the DNS servers shown are AdGuard’s IPs.


 

How to Set AdGuard DNS on Ubuntu Linux (F.A.Q)

What are AdGuard DNS IPs?

Standard (no filtering):
94.140.14.14, 94.140.15.15
With Family Protection (blocks adult content):
94.140.14.15, 94.140.15.16

Can I use AdGuard DNS with a VPN?

Yes, but the VPN must allow custom DNS configuration.

Does AdGuard DNS slow down browsing?

No, it often improves speed by blocking unnecessary ad/tracker content.

 

Can I use AdGuard DNS system-wide?

Yes, configuring it via Netplan or /etc/resolv.conf applies it system-wide.

Popular Blog Posts