Setting Up AdGuard DNS on UniFi Dream Machine Pro for Enhanced Network Security


The UniFi Dream Machine Pro (UDM Pro) is a powerful all-in-one networking device that combines advanced security features with high-performance routing capabilities. One of the ways to enhance your network’s security is by integrating AdGuard DNS into your UDM Pro. This article will guide you through the process of setting up AdGuard DNS on your UniFi Dream Machine Pro and explain how doing so can help protect all connected devices automatically. Additionally, we will provide backlinks to related articles for further information on AdGuard, Raspberry Pi, and other related topics.

Step 1: Install AdGuard on a Raspberry Pi Before you can configure AdGuard DNS on your UDM Pro, you’ll need to have AdGuard up and running on a Raspberry Pi. If you haven’t already done so, follow our comprehensive guide on how to run AdGuard on a Raspberry Pi to get started.

Step 2: Find AdGuard’s IP Address Once AdGuard is running on your Raspberry Pi, you need to find its IP address. You can do this by logging in to your Raspberry Pi via SSH and running the following command: hostname -I. Note down the IP address, as you will need it in the next step.

Step 3: Access the UniFi Dream Machine Pro Interface To configure the DNS settings on your UDM Pro, you need to access its web interface. Open a web browser and enter the IP address of your UDM Pro (usually “”) in the address bar. Log in using your UniFi credentials.

Step 4: Configure DNS Settings Once logged in, follow these steps to configure AdGuard DNS on your UDM Pro:

  1. Click on the “Settings” tab in the lower-left corner of the interface.
  2. Select “Networks” from the left-hand menu.
  3. Click on the “Edit” (pencil) icon next to your LAN network.
  4. Scroll down to the “Domain Name Server” section.
  5. Enter the IP address of your Raspberry Pi running AdGuard in the “DNS Server 1” field.
  6. (Optional) Enter a secondary DNS server in the “DNS Server 2” field if desired, for redundancy.
  7. Click “Save” at the bottom of the page to apply the changes.

Step 5: Test Your Configuration To ensure that AdGuard DNS is working correctly, open a web browser on any device connected to your network and visit a known ad-heavy website. If you don’t see any ads and the browsing experience is smooth, your AdGuard DNS configuration is successful.


Setting up AdGuard DNS on your UniFi Dream Machine Pro is a simple yet effective way to enhance your network’s security and protect all connected devices from intrusive ads, trackers, and other online threats. By following this guide, you can ensure that your devices automatically use AdGuard DNS without any additional configuration. For more information on enhancing your network’s security and privacy, check out our articles on WireGuard VPN and NAS systems and learn how they can be combined with AdGuard for a comprehensive home network solution.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top