Fix the TP-Link same-subnet DNS error

"DNS server IP address and LAN IP address cannot be in the same subnet. Please enter another one." - the TP-Link interface refuses to save a DNS address that sits in the router's own LAN range

Affects: TP-Link Archer routers (documented on Archer A20 and Archer AX50) when a DNS entry sits in the same subnet as the LAN IP address

What this message means

The router refuses to save a DNS address that belongs to your own LAN range. The report that documents the exact wording comes from an Archer A20 owner pointing the router at an internal DNS server: "the interface refuses to save the setting. It displays a message: 'DNS server IP address and LAN IP address cannot be in the same subnet. Please enter another one.'" [1]. The same thread identifies the likely mechanism - "built-in protection from DNS rebinding attacks" [2] - and TP-Link's staff answer in a related thread confirms the intended path around it [4].

If you got this error while entering a Smart DNS provider's addresses, something is off: provider addresses are public IPs outside your LAN. Check what you actually typed before troubleshooting further.

Fix it step by step

Cause 1: You are pointing at a server on your own network (Pi-hole, internal DNS)

The intended trigger: a DNS server that lives inside the LAN, such as a Pi-hole at 192.168.0.x behind a 192.168.0.1 router.

Fix:

  1. Use the DHCP workaround instead of the Internet-page field: open Advanced > Network > DHCP Server.
  2. Enter your internal DNS address in the Primary DNS field there and save.
  3. TP-Link staff confirmed this path: "you are correct that you can change the DNS settings under DHCP server as required" [4], and the Archer AX50 user who first reported the workaround set "my DNS in my Archer AX-50 DHCP" [3].

The DHCP Server page carries its own Primary DNS and Secondary DNS fields, which CactusVPN's walkthrough also documents as the place Smart DNS values go on several TP-Link interfaces [5]. For Smart DNS purposes you normally will not need this workaround - it exists for LAN-side resolvers.

Cause 2: A typo put a LAN-looking address in the field

The second most common cause is mundane: an address like 192.168.0.1 or 192.168.1.1 typed into the DNS field by mistake.

Fix:

  1. Compare the rejected address against your router's LAN IP and subnet.
  2. Re-enter the provider's primary address carefully - all four octets, no transposed digits.
  3. Save again.

Smart DNS providers always publish public addresses; if the value you are about to save starts with the same three numbers as your LAN IP, it is the wrong address.

Cause 3: The subnet mask makes a public-looking address local

Some LAN ranges are wider than they look, so an address can appear public while technically sitting inside the local range.

Fix:

  1. Check the router's LAN subnet mask on the same Network page - a /16 mask (255.255.0.0) makes everything from 192.168.0.0 to 192.168.255.255 local.
  2. Confirm the DNS address falls outside that range, not just outside the first 254 addresses.
  3. If the address really is outside the range and the error still appears, use the DHCP workaround from Cause 1 as the fallback.

The community report that documents the message never names the subnet mask, so treat this cause as a plausible explanation rather than documented behaviour.

If nothing helps

Fall back to the arrangement that works regardless: leave the Internet-page DNS at the provider values for external resolution and let the DHCP-server field stay empty, so clients forward through the router. If you specifically need a LAN-side resolver, the DHCP path is the documented workaround [4]. If even that fails, restore the automatic DNS setting first to prove the router itself is healthy, then re-run the steps in the Archer guide one at a time. As a last resort, a firmware update can change how this restriction behaves - TP-Link's community threads show the message across firmware generations, so check your model's release notes before assuming a defect.

FAQ

Why does TP-Link reject a DNS address in my own subnet?

The interface applies built-in protection from DNS rebinding attacks - an attacker-controlled domain must not be able to resolve to private LAN addresses. A DNS server inside your own range looks exactly like that pattern to the router, so the WAN-level DNS field refuses the entry.

Is there a way to whitelist my own DNS server?

No dedicated toggle is documented for consumer Archer firmware. The workaround TP-Link staff confirmed in the community is to set the DNS values under the DHCP server settings instead of the Internet page.

I use a Smart DNS provider - does this error affect me?

Almost never. Provider DNS addresses are public IPs outside your LAN range, so the same-subnet rejection does not apply. If you see it anyway, the address you typed is probably a LAN address by mistake.

Does this rejection appear on the Deco app too?

The documented report covers the Archer web interface. The same rebinding-protection behaviour is plausible on any TP-Link router firmware, but we found no Deco-app report or documentation of the exact message, so treat Deco as unverified for this specific error.

Setting up DNS on this device?

Open the setup guide → All TP-Link guides

Sources

  1. TP-Link Community - DNS rebind protection (Archer A20 same-subnet rejection) - accessed 2026-11-23
  2. TP-Link Community - DNS rebind protection (user identifies the cause) - accessed 2026-11-23
  3. TP-Link Community - Customize DNS rebinding protection (user workaround on Archer AX50) - accessed 2026-11-23
  4. TP-Link Community - Customize DNS rebinding protection (staff reply) - accessed 2026-11-23
  5. CactusVPN - How to set up Smart DNS on TP-Link Routers (DHCP Server fields) - accessed 2026-11-23