DNS on UniFi gateways: WAN DNS, DHCP DNS and error fixes

UniFi DNS setup: the WAN DNS and the client-facing DHCP DNS servers, plus fixes for the real UniFi network errors.

Short answer: In the UniFi Network app go to Settings > Networks, open your LAN and set the DNS Server under DHCP Service Management; on the WAN side the field sits under Settings > Internet. Register your IP with your Smart DNS provider first, then reconnect clients.

Which model do I have?

Ubiquiti ships one interface for DNS: the UniFi Network application, which runs in the browser on the gateway itself or at unifi.ui.com, and as a mobile app. On a UniFi Cloud Gateway the WAN resolver lives under Settings > Internet [1], while the DNS addresses handed to your devices live per network under Settings > Networks > [Network Name] > DHCP Service Management [1]. An independent guide describes the same screen with the Advanced settings toggle set to Manual and a Show Options step [2]. Consoles that are not gateways (a Cloud Key or recorder) take their DNS from UniFi OS console settings or from the upstream DHCP server [1].

What you ownPatternWhere DNS livesGuideSrc
Cloud Gateway or gateway (UDM, UDR, UCG, UXG) Gateway routing your LAN UniFi Network app, Settings > Internet and Settings > Networks How to change DNS on a UniFi gateway [1]
Cloud Key, UNVR or another UniFi OS console without routing Console takes DNS from UniFi OS settings or upstream DHCP UniFi OS > Console Settings > IP Configuration How to change DNS on a UniFi gateway [1]
Self-hosted Network Server on Windows, Linux or macOS Same Network app interface after login UniFi Network app, Settings > Networks How to change DNS on a UniFi gateway [2]
  1. Ubiquiti Help Center - UniFi DNS Troubleshooting Guide - accessed 2026-11-23
  2. Ubiquiti Help Center - UniFi DNS Troubleshooting Guide - accessed 2026-11-23
  3. LazyAdmin - UniFi Local and Server DNS Settings Explained - accessed 2026-11-23

Guides for this brand

Fix network errors on this brand

UniFi documents three failure patterns that matter after a DNS change: clients keep the old servers until their DHCP lease expires, the WAN status can drop when health-check probes fail, and UniFi services stop updating when custom DNS cannot resolve ui.com domains.

Sources

  1. Ubiquiti Help Center - UniFi DNS Troubleshooting Guide - accessed 2026-11-23
  2. LazyAdmin - UniFi Local and Server DNS Settings Explained - accessed 2026-11-23
  3. Ubiquiti Help Center - UniFi DHCP Server - accessed 2026-11-23
  4. Ubiquiti Help Center - WAN Failover, Load Balancing and Port Remapping on UniFi Gateways - accessed 2026-11-23