Rogue DHCP server hands out wrong gateway/DNS Networking Origin: Network OSI layer 7 · Application Last updated 5 Nov 2026

Networking: Clients receive the wrong default gateway or DNS server — a rogue DHCP server (often a home router) answers first

A second DHCP server on the network is giving clients bad settings, so some machines have no internet or odd DNS.

Exact message you may see rogue DHCP serverwrong default gateway from DHCPDHCP server handing out wrong DNSsecond DHCP server on the networkunauthorized DHCP server
Seen on: Windows Networking

Meaning

Compare ipconfig /all and look at "DHCP Server" on a broken client. Find the rogue device (a home router plugged into the LAN via a LAN port, a VM bridge, an ICS share) and disable its DHCP, then enable DHCP snooping on switches so only trusted ports can answer.

Common causes

  • Consumer router plugged into the office LAN
  • VM or hotspot bridging DHCP onto the LAN
  • Internet Connection Sharing enabled
  • Misconfigured second DHCP server
  • No DHCP snooping on switches

⚡ Quick fix

  1. Check the DHCP server address: ipconfig /all
  2. Unplug/disable the rogue DHCP
  3. Enable DHCP snooping with trusted uplink ports only

Detailed fix by platform

Windows

  1. powershell
    ipconfig /all | findstr /i "DHCP Server Default Gateway DNS"
    nmap --script broadcast-dhcp-discover

How to diagnose

  1. DHCP server — Expected address?
  2. Second offer — Present?
  3. Snooping — Enabled?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

0x800704EC — 0x800704EC: This program is blocked by group policy (Windows Defender) (Windows)0x800704EC1005 — Cloudflare Error 1005: Access denied — The owner of this website has banned the autonomous system number (ASN) your IP address is in (Cloudflare)10051006 — Cloudflare Error 1006 / 1007 / 1008: Access denied — Your IP address has been banned (Cloudflare)10061009 — Cloudflare Error 1009: Access denied — The owner of this website has banned the country or region your IP address is in (Cloudflare)10091010 — Cloudflare Error 1010: The owner of this website has banned your access based on your browser's signature (Cloudflare)10101011 — Cloudflare Error 1011: Access denied (Hotlinking denied) (Cloudflare)10111012 — Cloudflare Error 1012: Access denied (Cloudflare)10121015 — Cloudflare Error 1015: You are being rate limited (Cloudflare)1015Rogue DHC…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.