Fix the UniFi WAN showing offline after a DNS change

The UniFi gateway shows the WAN as down (or the internet status drops) after you changed the DNS Server settings

Affects: UniFi Cloud Gateways and gateways running the UniFi Network application

What this message means

After a DNS change, the UniFi dashboard can show the WAN as down even though devices still pass traffic. This happens because UniFi continuously probes WAN health: it pings ping.ui.com and resolves ui.com through Cloudflare and Google, and "a WAN is marked down if any two out of three probes fail" under the default Auto SLA [1]. Ubiquiti's DNS guide adds the other half of the mechanism: DNS travels over UDP port 53, and if an upstream firewall, gateway or ISP modem blocks it, "DNS resolution will fail" [2]. A mistyped provider address produces exactly that failure.

Fix it step by step

Cause 1: A mistyped or unreachable DNS address in the WAN field

The most common cause right after an edit.

Fix:

  1. Open Settings > Internet and check the DNS Server values character by character [1].
  2. Temporarily restore automatic DNS on the WAN and confirm the WAN status returns to online.
  3. Re-enter the Smart DNS addresses, then watch the WAN status for a few minutes.

If the WAN drops again the moment the provider addresses go in, the primary address is the problem - swap in the secondary to confirm. The entry point is Step 2 of How to change DNS on a UniFi gateway.

Cause 2: UDP port 53 is blocked upstream

ISPs and upstream modems occasionally filter DNS.

Fix:

  1. Ubiquiti's guidance is to ensure UDP port 53 is "not being blocked by any upstream firewalls, gateways or ISP modems" [2].
  2. Test with a known public resolver such as 1.1.1.1 in the WAN field; if that also fails, the block sits upstream of your edit.
  3. Contact your ISP about port 53 filtering if both provider and public resolvers fail.

This cause is independent of which DNS you chose: if the port is blocked, every resolver fails and the probes fail with it.

Cause 3: The health probes themselves are the issue

The three-probe design can misreport a working line.

Fix:

  1. Confirm traffic actually flows: open a website from a client on the network.
  2. If traffic flows while the WAN shows down, remember the probes are "DNS resolution of ui.com using Cloudflare (1.1.1.1)" and Google, plus a ping [1].
  3. Check whether your custom DNS can resolve ui.com; if it cannot, Ubiquiti's DNS guide warns custom servers "may not be updated to resolve the required ui.com domains, or they may block them entirely" [2].

If the gateway DNS is what your Smart DNS provider hands out, make sure the provider resolves ui.com or keep the WAN field on automatic and only change the per-network DHCP DNS.

If nothing helps

Revert the WAN DNS to automatic and confirm the WAN status recovers - that removes your edit from the equation. Then check the physical path: cable seated in the WAN port, modem online, and ISP settings such as VLAN tags or PPPoE credentials unchanged [1]. If you run a multi-WAN setup, review the SLA configuration under Settings > Internet before assuming a fault, because custom thresholds can mark a degraded-but-working link as down. Finally, if clients still lack internet while the WAN shows online, the problem is inside the LAN: the stale DNS lease page and the services page cover the remaining suspects.

FAQ

Does WAN offline mean my internet is actually down?

Not necessarily. UniFi decides WAN health from three probes - ping to ping.ui.com and DNS resolution of ui.com via Cloudflare and Google - and marks the WAN down when two of the three fail [1]. A DNS entry that cannot resolve ui.com can therefore drop the status while the physical link still passes traffic.

Can my Smart DNS provider cause this?

It can contribute. If the WAN DNS fields point at addresses that block or fail to resolve ui.com, the DNS probes in the default SLA fail. The WAN health probes resolve ui.com specifically, so test with the provider addresses in place and watch whether the status recovers.

Should I change the SLA settings?

Only if you understand what they gate. The Auto SLA marks a WAN down on two of three failing probes, which Ubiquiti describes as sufficient for most networks. Custom SLAs under Settings > Internet are for multi-WAN setups with specific needs.

What if the WAN stays offline after reverting DNS?

Then the DNS change was probably not the cause. Check the physical link and ISP settings - Ubiquiti notes that a WAN appearing offline after port remapping should be checked against VLAN tags, static IP and PPPoE credentials, and the same logic applies after any settings change.

Sources

  1. Ubiquiti Help Center - WAN Failover, Load Balancing and Port Remapping on UniFi Gateways - accessed 2026-11-23
  2. Ubiquiti Help Center - UniFi DNS Troubleshooting Guide - accessed 2026-11-23
  3. Ubiquiti Help Center - WAN Failover (probe list) - accessed 2026-11-23