01The illusion
In the gateway’s traffic view, the only visible DNS traffic went to the secondary resolver, outside the network. Hasty conclusion: the primary was useless.
02Layer 2 versus layer 3
A client reaching an address in its own subnet doesn’t need the router: it resolves the MAC address with ARP and sends the frame directly, through the switch. The traffic stays at layer 2, and the gateway doesn’t see a single byte of it.
Only traffic that changes subnet crosses the gateway. The traffic view therefore showed only the minority (the backup) and ignored the primary, by far the most used.
Same reasoning between two VLANs: if inter-VLAN routing is done by a layer 3 switch, that traffic never reaches the gateway either.
03Look in the right place
To measure a resolver’s real load, look at its own logs and statistics, or capture on its own interface. To observe intra-VLAN traffic from the network, you need a mirror port (SPAN) on the switch.
# On the resolver itself: who is querying it, live
sudo tcpdump -ni eth0 'udp port 53 or tcp port 53'Key takeaways
- Within a VLAN, traffic is switched, never routed.
- A gateway only sees what it routes itself.
- Measure a service on the service itself, or through a mirror port.