Fix stale DNS on UniFi clients
Clients keep resolving through the old DNS servers after you changed the DNS Server under DHCP Service Management
Affects: UniFi Cloud Gateways and gateways running the UniFi Network application
What this message means
This is expected UniFi behaviour, not a fault with your edit. When you set a new DNS Server under DHCP Service Management, the gateway starts offering the new addresses to clients, but each client keeps its current DHCP lease until it expires. Ubiquiti documents this directly: "This change will take effect after your device's DHCP lease expires, usually after 24 hours. To expedite this, turn your device off and back on again" [1]. The same page notes that by default the DNS Server handed to clients is the gateway's own address [2], so devices that show the gateway IP as their resolver are behaving normally.
Fix it step by step
Cause 1: The client is still on its old DHCP lease
The default state after any DNS change in UniFi.
Fix:
- Restart the affected device - a full power cycle for smart TVs and consoles, a reboot for computers and phones [1].
- Alternatively renew the lease without a restart: the independent UniFi guide suggests running ipconfig /renew on Windows clients to pick up the new lease information immediately [3].
- Re-check the resolver on the device after it reconnects.
This is the case Ubiquiti's own note describes, and a restart resolves it in seconds. The relevant step in the guide is Step 7 of How to change DNS on a UniFi gateway.
Cause 2: The device has a manual DNS entry of its own
A device with static DNS ignores the DHCP values entirely.
Fix:
- Open the device's network settings and look at its DNS configuration.
- If it shows manual addresses, switch it back to automatic so it follows the UniFi DHCP values again.
- Reconnect the device and verify.
UniFi's DHCP documentation describes the default: clients receive the gateway address as their DNS server unless configured otherwise [2]. A hardcoded public resolver on a TV is the classic reason one device keeps behaving differently from the rest.
Cause 3: The change was applied to a different network than the device sits on
UniFi configures DHCP per virtual network, and a device connected to a VLAN keeps that VLAN's settings.
Fix:
- In UniFi Network, check which network the device is connected to under Clients.
- Open Settings > Networks, select that network, and confirm its DHCP Service Management > DNS Server field carries your Smart DNS addresses [1].
- Apply the change to the right network, then restart the device.
Each network carries its own DHCP section by default [2], so a change on Default does nothing for devices on a kids or IoT VLAN.
If nothing helps
Set the DNS fields back to auto in Settings > Networks and confirm clients return to the gateway-as-resolver default [2]; that isolates whether the problem is your edit or something else. Then check the WAN side under Settings > Internet, because a broken WAN resolver produces similar symptoms - the WAN offline error page covers the health-check mechanism. Finally, restart the gateway itself if clients renew but still fail to resolve: a stuck DHCP service after an update is rare, but a reboot is the documented first move for most UniFi quirks.
FAQ
How long until every device has the new DNS?
Ubiquiti states the change takes effect after the device's DHCP lease expires, usually after 24 hours, and recommends restarting the device to speed this up. Households with long lease times should not wait for the lease: restart or renew instead.
Does the gateway itself need a restart?
No. The gateway already serves the new DHCP values after you apply the change; it is the client that holds the old lease. Restarting the gateway does not force clients to renew.
One device still uses the old DNS after a restart. Why?
That device probably has a manually configured DNS server of its own, which overrides whatever the gateway hands out. Check the device's network settings and clear the manual entry before blaming the UniFi configuration.
Is this the same on the WAN side?
The WAN resolver changes as soon as you apply the WAN setting; the lease delay only affects the DHCP addresses handed to clients. If lookups still fail after both are set, check the WAN error page instead.
Setting up DNS on this device?
Sources
- Ubiquiti Help Center - UniFi DNS Troubleshooting Guide - accessed 2026-11-23
- Ubiquiti Help Center - UniFi DHCP Server - accessed 2026-11-23
- LazyAdmin - UniFi Local and Server DNS Settings Explained - accessed 2026-11-23