DNS Flapping: When Resolution Oscillates

Your DNS queries return one IP, then another. Here's why.

DNS flapping describes a situation where DNS resolutions apparently randomly alternate between different values. This can be intentional (round-robin load balancing) or problematic (desynchronized secondaries, corrupted zone, attack). Problematic flapping causes inconsistent user experience: sometimes the site loads, sometimes not. Identifying whether flapping is normal or abnormal is the first diagnostic step.

Symptoms of DNS Flapping

Causes of Flapping

Flapping Diagnosis

  1. Query each NS individually: dig @ns1.example.com example.com then @ns2...
  2. Verify SOA serial is identical on all NS.
  3. If intentional round-robin, verify ALL returned IPs are valid.
  4. Test on multiple public resolvers to see if flapping is local or global.

Flapping Detection with MoniTao

MoniTao identifies flapping patterns:

Stabilizing DNS

FAQ - DNS Flapping

Is DNS round-robin reliable?

For basic load balancing, yes. But it has no health check: if an IP goes down, users are still sent there.

How to force a single IP?

Delete other A records and keep one IP. For real load balancing, use a load balancer.

My NS are desynchronized, how to fix?

Check zone transfers (AXFR/IXFR), SOA serial, and that NOTIFY works between primary and secondaries.

Can flapping be an attack?

Potentially. An attacker who compromised one NS can return different values. Verify your server integrity.

Ready to Sleep Soundly?

Start free, no credit card required.