Why dnsmasq Ignores DHCPDISCOVER Packets That tcpdump Can See

Abstract: When tcpdump shows DHCPDISCOVER arriving but dnsmasq's log stays silent, the packets are usually not actually reaching the server's socket. Here are the most common causes and how to verify each one.

Created: 2026-11-02 by

If tcpdump shows DHCPDISCOVER packets arriving on your interface but dnsmasq never reacts — not even with log-dhcp enabled — the packets are almost certainly not making it into dnsmasq's UDP socket, even though they are visible at the capture layer. tcpdump taps the network stack below most of the filtering that governs whether a userspace process ever receives a packet, so "tcpdump sees it" and "the daemon sees it" are two very different statements. This article walks through the usual suspects in order of likelihood.

Why tcpdump sees packets that dnsmasq does not

tcpdump uses a raw packet capture mechanism that receives frames at a low level of the network stack, essentially cloning everything that touches the interface. A DHCP server like dnsmasq, by contrast, binds a normal UDP socket on port 67 and only receives packets that the kernel delivers to that socket. Between those two points sit several filters:

  • Interface addressing — the kernel decides which sockets see a packet partly based on the addresses assigned to the receiving interface.
  • Socket binding and conflicts — only one process can hold the DHCP socket; a competitor may have silently won it.
  • Bridge and virtual switch configuration — on hypervisors, packets can appear on a tap device without being properly delivered on the bridge the server is attached to.

Any of these can produce the exact symptom: visible in tcpdump, invisible to dnsmasq, no log lines at all.

Cause 1: no usable IPv4 address on the serving interface

This is the most common misconfiguration. dnsmasq can only offer DHCP leases on an interface that carries a static IPv4 address in the subnet being served. If the interface has no address, only a link-local address, or an address in a different subnet, dnsmasq will quietly ignore discovers on it. Crucially, it does this silently — even log-dhcp only logs packets it actually processes.

Check the interface on the server:

ip addr show eth1

If nothing in 10.114.114.0/24 is listed, assign a fixed address in that subnet but outside your dynamic pool, for example 10.114.114.1/24, and restart dnsmasq. The restart matters: dnsmasq binds its sockets at startup, so if it was launched before the address existed, it may never pick the interface up correctly. Starting the daemon after the interface is fully configured is a habit worth enforcing in your boot order.

Cause 2: another process holds port 67

DHCP requires an exclusive socket on UDP port 67. If a second DHCP server is running — another dnsmasq instance, a full DHCP daemon, or something spawned by a network management service — it may hold the socket while your intended instance still starts up and logs its banner normally, looking perfectly healthy.

Verify who actually owns the port:

ss -ulnp sport = :67

The process ID shown here is the one receiving packets. If it is not the PID of the dnsmasq instance you configured, stop the other daemon or consolidate configurations. Also check for duplicate dnsmasq processes with ps aux | grep dnsmasq — a distro's default service can start one automatically alongside your hand-rolled instance.

Cause 3: virtualization bridge misconfiguration

If the server and client are virtual machines on a hypervisor such as Proxmox, verify that the VM's network device is actually attached to the bridge you think it is. A mismatch between the bridge a client's NIC is connected to and the bridge on the server side can produce bizarre results: broadcast traffic occasionally leaking across in one direction — which tcpdump happily displays — without any real, consistent delivery path. If broadcasts seem to arrive intermittently or stop after a host reboot, treat this as a strong hint.

On Proxmox, compare the vmbr assigned to the server VM's network interface with the one the client uses; both must reference the same bridge, and that bridge must correspond to the physical or internal network carrying the traffic. Fixing the bridge assignment typically resolves the problem immediately, and the DHCP log entries appear right away.

Cause 4: interface naming and state

Two smaller but real pitfalls:

  • The packet may be arriving on a different interface than the one you think — a bridge member port, a VLAN subinterface, or a renamed device. Match the interface= directive exactly against the device where tcpdump captures the traffic.
  • The interface must be in state UP. dnsmasq binds exclusively to the named interface and will not serve on one that is down.

A systematic troubleshooting sequence

  1. Run ip addr show <interface> and confirm a static IPv4 address in the DHCP subnet exists.
  2. Run ss -ulnp sport = :67 and confirm the right process owns the socket.
  3. Confirm the interface name in the dnsmasq config matches reality and the link is up.
  4. On a hypervisor, audit the bridge assignment for both client and server VMs.
  5. Add log-queries and log-dhcp, restart dnsmasq after all network configuration is complete, and watch the log live with journalctl -fu dnsmasq or your equivalent.

Note that a firewall is rarely the culprit here: UDP 67 broadcast traffic to a locally bound socket is usually permitted by default, and if it were dropped you would more likely see it in firewall counters. Still, if everything above checks out, inspecting rules with iptables -L -v -n or nft list ruleset is a reasonable last step.

Frequently Asked Questions

Does dnsmasq log dropped or ignored DHCP packets?

No. log-dhcp only logs packets dnsmasq actually processes. Packets filtered out before reaching the socket, or ignored due to missing interface addressing, produce no log output at all — which is why silence in the log does not mean the packet never arrived on the machine.

Why does the server need an IP address in the DHCP subnet at all?

dnsmasq determines which range and options to offer based on the interface a request arrived on, and it uses the interface's own address to construct the server identifier and the subnet context. Without an address in the subnet, it has no basis for serving that interface.

Can I put the server's address inside the DHCP pool?

You should not. The pool range is handed out to clients, so a static server address inside it will eventually collide with a leased address. Place the server's address in the same subnet but outside the pool — for instance, at the low end of the range.

The client shows "broadcasting discover" repeatedly and gives up. What does that tell me?

It confirms the client never receives an offer, so the failure is on the server path — delivery, socket, or server-side filtering — not on the client's side. It does not distinguish between the causes listed above, so work through them in order.

tcpdump showed the packets, then they stopped appearing entirely. What changed?

Intermittent visibility of broadcasts with no functioning DHCP exchange is a classic sign of a virtualization bridge problem, where packets leak between bridges rather than being delivered properly. If the traffic vanishes after a host or VM restart, check the bridge assignments on both VMs.

Should dnsmasq be started before or after the network comes up?

After. dnsmasq binds its sockets when it starts and does not reliably adapt if the interface is later reconfigured. Ensure your boot sequence brings interfaces and their addresses up before launching dnsmasq, or add a restart of dnsmasq to your network configuration hook.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More