unifi dns settings

Unifi DNS Settings Guide: Easily Control Your Network

By Richard Rodriguez
AD

Customizing the Domain Name System (DNS) settings on a UniFi Dream Machine (UDM) can greatly enhance your network's performance and security. DNS is essentially the internet's address book, translating human-readable domain names into numerical IP addresses. In this guide, we'll delve into how to configure DNS settings on your UniFi Dream Machine to optimize your network's functioning.

Properly configuring DNS settings ensures faster and more secure internet access. By directing your network's DNS queries to trusted and reliable servers, you can minimize lag, reduce the risk of malicious redirection, and improve overall browsing experience.

Accessing the UniFi Dream Machine Web Interface

Before diving into DNS settings, let's first ensure you can access the UniFi Dream Machine web interface, where all network configurations are made.

AD
DNS Settings Explained: 2 Quick Changes for Faster, Safer Internet
DNS Settings Explained: 2 Quick Changes for Faster, Safer Internet
How To: Deploying a Ubiquiti UniFi Home Network including Multiple WiFi Access Points (Part 1) - Free Time
How To: Deploying a Ubiquiti UniFi Home Network including Multiple WiFi Access Points (Part 1) - Free Time
What Is DNS A Simple Guide to How the Internet Finds Websites 🌐
What Is DNS A Simple Guide to How the Internet Finds Websites 🌐

Follow these steps to access the UDM web interface:

  1. Connect your device to your UDM network.
  2. Open a web browser and navigate to the IP address of your UDM (by default, it's 192.168.1.1).
  3. Log in using your UniFi credentials. If you haven't changed the password, the default credentials are username: ubnt password: ubnt.

Setting Primary and Secondary DNS Servers

The primary DNS server is the first server your network queries for DNS translations. If the primary server fails to respond, the secondary server takes over.

DNS
DNS
Top Free DNS Services to Speed Up & Secure Your Internet in 2026
Top Free DNS Services to Speed Up & Secure Your Internet in 2026
What Is Your DNS? | Daves Computer Tips
What Is Your DNS? | Daves Computer Tips

By default, UDM uses Google's public DNS servers (8.8.8.8 and 8.8.4.4). You can keep these if you're satisfied with Google's service, or configure your own DNS servers for better performance and privacy.

Configuring Advanced DNS Settings

UDM offers more advanced DNS settings, such as enabling custom DNS upstream servers and configuring DNS records. These features allow you to customize your network's DNS behavior further, optimizing it for specific use cases.

AD

To access advanced DNS settings:

Learn how DNS works
Learn how DNS works
HOW DNS WORKS
HOW DNS WORKS
DNS Lookup Explained
DNS Lookup Explained
DNS Namespace
DNS Namespace
Best DNS Server for Your Location: Lower Gaming Ping in Minutes
Best DNS Server for Your Location: Lower Gaming Ping in Minutes
an info sheet with different types of computers and their names on it's side
an info sheet with different types of computers and their names on it's side
  1. In the UDM web interface, navigate to Settings > LAN.
  2. Scroll down to the DNS section.
  3. Toggle on Custom DNS to access advanced settings.

Enabling a Custom Domain for Your UniFi Dream Machine

Customizing your UDM's domain name can enhance your network's manageability and security. Instead of using the default IP address, you can access your UDM's web interface using a memorable domain name, such as udm.example.com. This also allows setting up a reverse proxy or VPN server more easily.

To do this, you'll need to update your router's DHCP server and update your DNS records to point udm.example.com to your UDM's IP address.

AD

Updating the DHCP Server

The DHCP server on your UDM is responsible for assigning IP addresses, default gateways, and DNS servers to devices on your network.

Smartphone Android : comment activer le mode DNS privé - ZDNET
Smartphone Android : comment activer le mode DNS privé - ZDNET
Running UniFi using a Docker Container
Running UniFi using a Docker Container
Easily Change Your Router’s DNS for Faster Internet
Easily Change Your Router’s DNS for Faster Internet
the diagram shows how dns works
the diagram shows how dns works
How To Change DNS Server On Windows (And Why You May Want To) - SlashGear
How To Change DNS Server On Windows (And Why You May Want To) - SlashGear
DNS Troubleshooting Guide – Shiroi Enterprises.
DNS Troubleshooting Guide – Shiroi Enterprises.
#systemdesign #coding #interviewtips | Anmol Agarwal
#systemdesign #coding #interviewtips | Anmol Agarwal
Overview of DNS Protocols
Overview of DNS Protocols
DNS Forward Lookup Zone Flow Diagram (Domain → IP Explained)
DNS Forward Lookup Zone Flow Diagram (Domain → IP Explained)
DNS Explained Like You're 12 🌐 | How the Internet Finds Websites in Seconds
DNS Explained Like You're 12 🌐 | How the Internet Finds Websites in Seconds

To update the DHCP server:

  1. In the UDM web interface, navigate to Settings > LAN > DHCP.
  2. Update the DHCP Name field to your desired domain name, like udm.example.com.

Updating DNS Records

To point the custom domain to your UDM's IP address, you'll need to update your DNS records. This process varies depending on your DNS hosting provider. Most hosting providers offer a user-friendly interface for managing DNS records.

AD

Add an A record with the following details:

Name/Host/Alias
udm
Points to/Value/Text
Your UDM's IP address (e.g., 192.168.1.1)

Once the DNS records propagate, you'll be able to access your UDM's web interface using the custom domain, like https://udm.example.com. This creates a more user-friendly and secure way to manage your network.

With these custom DNS settings and configurations, your UniFi Dream Machine network will be optimized for better performance, security, and ease of use. Regularly monitoring and adjusting these settings will help ensure your network remains efficient and effective.

AD