How to Change DNS on Ubiquiti UniFi
By [FILL IN], [FILL IN] · Last updated
Change DNS per network or on the WAN in UniFi Network.
Before you start
You need a FirewallDNS account (see pricing). Sign in to your dashboard, register your public IP address and copy your DNS server addresses. Replace <FIREWALLDNS-PRIMARY> and <FIREWALLDNS-SECONDARY> below with them.
Step by step
- Open UniFi Network > Settings > Networks and select your LAN.
- Under DHCP Service Management / DNS Server, untick Auto and enter <FIREWALLDNS-PRIMARY> and <FIREWALLDNS-SECONDARY>.
- Repeat for every network/VLAN.
- Settings > Internet > WAN: set DNS Server to manual with the same addresses.
- Optional: use Traffic Rules or Firewall to block DNS to other servers.
Verify it works
- Renew DHCP on a client (Windows:
ipconfig /renew, macOS: reconnect Wi-Fi). - Run
nslookup example.comand check which server answered. - Open the live log in your dashboard. New lookups should appear within seconds.