DNS_ZONEFLG_FLUSH was not being cleared. dns_zone_flush() could return a misleading result. If the zone was being dumped incrementaly when dns_zone_flush() was called ensure that it gets redumped if the were still outstanding changes.