/// article
DNS Steering Under Failure: What Happens When Health, Policy, Or Data Is Missing
DNS steering works best when everything around it is healthy. Policies are current. Health checks are arriving. Prefix and ASN information is available. Resolver classification works. The latest configuration builds successfully. Every dependency agrees on the current state. Production systems eventually face the opposite situation. A health service stops...
DNS steering works best when everything around it is healthy. Policies are current. Health checks are arriving. Prefix and ASN information is available. Resolver classification works. The latest configuration builds successfully. Every dependency agrees on the current state. Production systems eventually face the opposite situation. A health service stops responding. A policy source becomes unreachable. A network-intelligence update contains bad data. A new serving snapshot fails validation. Only half of an update arrives. A management database is unavailable. An operator publishes a broken configuration. The authoritative DNS service still has one important responsibility: Answer DNS queries as predictably as possible. Failure handling should therefore be designed before an incident happens. A useful principle is: When new state cannot be trusted, prefer a complete known-good serving state over an incomplete new state. This does not mean using stale information forever. It means separating temporary dependency failures from failures in the serving state itself. DNS was designed with availability and distributed operation in mind. RFC 1034 notes that access to information can be more important than instantaneous consistency, and that old information may continue to be used while refresh attempts continue when updates are temporarily unavailable. A DNS steering system can apply a similar operational principle, while putting clear limits around how long old information remains acceptable. The Problem Consider: www.example.com The authoritative DNS system can return three destinations: Site A 192.0.2.10 Site B 198.51.100.10 Site C 203.0.113.10 Under normal conditions, the decision process might look like this: DNS Query | v Current policy | v Network classification | v Current health | v Eligible destinations | v DNS Answer For example: Policy: Region A prefers Site A Health: Site A = healthy Site B = healthy Site C = healthy Result: 192.0.2.10 Now imagine the health source stops updating. Policy: available Health: unknown Network data: available Or the opposite: Policy: latest update failed Previous policy: available Health: available Or: Policy: new version partially loaded Health: available Prefix data: new version incomplete These are different failures. They should not automatically produce the same response. Core Concept: Separate Serving State From Update State A useful architecture separates the state currently answering queries from the state being prepared. Conceptually: CONTROL AND UPDATE SIDE Configuration | v Network data | v Health information | v Build next snapshot | v Validate | v Ready? ----------------------------------------- SERVING SIDE Known-good snapshot | v DNS Query | v Answer The serving side should not need to expose half-completed updates. Suppose Snapshot 41 is currently active. Snapshot 41 VALID ACTIVE A new configuration arrives. Configuration change | v Build Snapshot 42 If Snapshot 42 succeeds: Snapshot 42 VALID READY the system can activate it. If Snapshot 42 fails: Snapshot 42 INVALID the safer behavior is usually: Continue serving Snapshot 41 rather than: Destroy Snapshot 41 | v Partially activate Snapshot 42 | v Hope queries still work The new state should earn its way into production. Known-Good State Is Different From Fresh State These terms should not be confused. A state can be: Fresh and valid or: Older but valid or: Fresh but invalid For DNS serving, a fresh invalid configuration is usually worse than an older valid configuration. Consider: Snapshot 41 Age: 5 minutes Status: validated All references: complete Then: Snapshot 42 Age: 5 seconds Status: failed validation Missing: Pool B The newer snapshot is fresher. It is not safer. Freshness matters only after correctness. A useful priority is: 1. Valid 2. Complete 3. Safe to serve 4. Fresh This does not mean Snapshot 41 should remain forever. Its age should still be monitored and bounded. Failure Type 1: Health Information Is Missing Health data changes more frequently than many routing policies. A typical state might contain: Site A = healthy Site B = healthy Site C = unhealthy Now imagine the health service stops reporting. The steering system should not immediately rewrite the state as: Site A = unhealthy Site B = unhealthy Site C = unhealthy Missing health information does not prove that all destinations failed. It may mean the monitoring system failed. The opposite assumption is also dangerous: No health information = Everything healthy forever That would allow very old information to remain trusted indefinitely. A better model uses at least three health states: HEALTHY UNHEALTHY UNKNOWN Health Needs Freshness Suppose Site A was last reported healthy. Site A health = healthy last_update = 10:00 At 10:01 the health source fails. The steering system may continue using the recent state temporarily. At some point, however, that result becomes too old to represent current evidence. Conceptually: Fresh health | v Use normally Health update missing | v Use recent known state for bounded period | v Freshness limit reached | v Health = unknown | v Apply unknown-health policy The freshness limit depends on the service. A health check running every five seconds has different expectations from one running every five minutes. What matters is that the age limit is explicit. Missing Health Should Not Automatically Cause a DNS Outage Imagine all three destinations were healthy. Then the monitoring system becomes unavailable. Site A = unknown Site B = unknown Site C = unknown If the DNS system removes every destination immediately, the monitoring outage becomes an application outage. This creates the following failure chain: Monitoring service fails | v All health becomes unknown | v DNS removes all destinations | v Users lose access The application servers may have been healthy the entire time. Operators therefore need an explicit policy for: All health unknown Possible approaches include temporarily using recent known state, using a predefined emergency pool, or keeping a conservative default destination available. There is no universal answer. The choice depends on service risk. Fail Open Versus Fail Closed When health information disappears, operators eventually face a choice. Fail Open Continue returning one or more destinations despite uncertain health. Conceptually: Health uncertain | v Return predefined destinations Possible advantage: The service may remain available even when monitoring failed. Possible risk: DNS could continue directing new clients toward a backend that is actually broken. Fail Closed Remove destinations whose health cannot be confirmed. Conceptually: Health uncertain | v Do not use destination Possible advantage: DNS avoids knowingly sending users to uncertain infrastructure. Possible risk: A monitoring failure can remove otherwise healthy infrastructure. Neither policy is automatically correct. The important requirement is deciding which behavior fits the application before the incident. Failure Type 2: Policy Is Stale Now consider a different problem. The active routing policy was published at: 10:00 At 10:05, the policy management system becomes unavailable. The authoritative DNS process still has a valid policy. This situation is different from having no policy. Policy source unavailable but Active validated policy exists A reasonable serving model is: Policy refresh fails | v Keep active known-good policy | v Raise alert | v Continue refresh attempts This follows a principle similar to DNS caching itself. RFC 1034 describes a distributed design where previously obtained information can remain useful while refresh attempts continue. The steering system should still define how old a policy may become before operators consider it unsafe. Stale Policy Is Not the Same as Stale DNS Cache The word “stale” appears in two different contexts. Stale Steering Policy This is internal application state. For example: Policy version 41 still active because version 42 could not be obtained Stale DNS Answer This occurs inside recursive DNS caching. RFC 8767 defines a method that allows recursive resolvers to use expired cached data in exceptional cases when they cannot refresh it from authoritative servers. These mechanisms are separate. A recursive resolver might return stale cached DNS information even while your authoritative steering system has already changed its active policy. That distinction matters during incidents. Failure Type 3: A Snapshot Build Fails Suppose the active serving state is: Snapshot 41 An operator publishes a change. The system begins building: Snapshot 42 During validation, it discovers: Policy A -> Pool B Pool B -> missing The snapshot is incomplete. The serving process should not gradually discover this after activation. Better: Build Snapshot 42 | v Resolve references | v Validate | v ERROR: Pool B missing | v Reject Snapshot 42 | v Keep Snapshot 41 Queries continue using the last complete state. The failure is reported to operators separately. What Should Snapshot Validation Check? A serving snapshot should be checked for the relationships required by the implementation. Typical checks can include: Zone has valid policy Policy references valid pools Pools contain valid destinations Addresses are valid Weights are valid Prefix rules are valid Fallback behavior exists Resolver groups exist Required health objects exist No invalid internal references remain The exact rules depend on the system. The principle is consistent: Configuration errors should be detected before queries depend on them. Failure Type 4: A Data Source Breaks DNS steering often depends on supporting data. For example: Prefix information ASN classification Country or region data Resolver classification Health information Policy configuration A source can fail in several ways. It may be: Unavailable Slow Empty Partially populated Corrupt Out of date Internally inconsistent These are not equivalent. A source returning zero records may actually be more dangerous than a source that returns an explicit error. Consider: Normal prefix count: 50,000 New import: 0 If the system blindly treats that as a valid update: 50,000 prefixes | v Replace with zero | v Activate the authoritative system could lose all prefix-aware policy information. A safer update process should apply sanity checks. Validate Data Shape, Not Only Data Format A file can be valid JSON and still contain bad operational data. A database query can succeed and still return the wrong number of objects. A network feed can parse correctly and still be incomplete. Validation therefore needs more than: Did parsing succeed? It may also need questions such as: Did expected zones exist? Did the number of active objects collapse unexpectedly? Are required default policies present? Do all referenced pools exist? Did required destinations disappear? Are network prefixes valid? Are health records fresh enough? This is operational validation. Failure Type 5: Partial Updates Partial updates are one of the most dangerous failure modes. Suppose a policy update requires four objects: Policy A Pool B Prefix Group C Health Configuration D The update process receives only: Policy A Pool B but not: Prefix Group C Health Configuration D If updates are applied object by object to the live query state, the server can enter an inconsistent period. Old Policy Old Pool Old Prefix Group Old Health Config | v New Policy New Pool Old Prefix Group Old Health Config Which generation is active? There is no clean answer. Publish Complete Generations A cleaner model is to treat related state as one serving generation. Generation 41 Zone data Policy data Pool data Network data Required health metadata Then prepare: Generation 42 separately. Only after Generation 42 is complete and validated does it become active. Generation 41 ACTIVE Generation 42 BUILDING | v Generation 42 VALIDATED | v Generation 42 ACTIVE This reduces the chance that a query observes mixed configuration generations. Health May Need Different Update Timing Health state creates an important exception. Health changes much more frequently than routing policy. You may not want to rebuild an entire large policy snapshot every time one health check changes. A useful conceptual separation is: Relatively stable state Zones Policies Pools Prefix mappings Resolver groups | v Serving snapshot Frequently changing state Health | v Bounded health table The query path can combine them: DNS Query | v Read active policy snapshot | v Read current health state | v Choose eligible answer The exact architecture can vary. The goal is to prevent rapidly changing health information from forcing unnecessary full policy rebuilds while still giving health freshness clear limits. Failure Type 6: Network Intelligence Is Missing Suppose a request arrives with ECS. RFC 7871 defines EDNS Client Subnet as a way for recursive resolvers to provide network-prefix information that can be used for network-sensitive DNS answers. It also documents privacy, cache, and resource considerations. The system tries to classify: 198.51.100.0/24 but the prefix data is unavailable. The safe answer is not to invent a classification. Do not convert: ASN = unknown into: ASN = probably X Instead, fall back to a policy that needs less information. Prefix available? | no | v ASN available? | no | v Country available? | no | v General policy The system loses precision. It does not necessarily lose availability. Failure Type 7: The Latest Network Dataset Is Bad Suppose the currently active network dataset contains: 50,000 required mappings A new version arrives with: 3,000 mappings The new dataset might legitimately be smaller. Or it might be incomplete. The authoritative server should not be the place where this ambiguity is discovered. A preparation layer should be able to ask: Is this reduction expected? Are required groups still present? Do active policies still resolve? Did high-priority prefixes disappear? Can every active policy still evaluate? If the answers fail validation: Reject new dataset | v Keep last valid dataset Again, freshness follows validity. Failure Type 8: The Control Plane Is Completely Unavailable Now consider a broader incident. The following systems cannot be reached: Policy database Network-intelligence source Configuration service Administrative API But the authoritative server still has a valid serving snapshot in memory. This is where separation between control and serving responsibilities pays off. CONTROL SYSTEMS X X unavailable X ----------------------------- AUTHORITATIVE DNS | v Known-good serving state | v Continue answering queries The authoritative server may no longer accept fresh policy changes. That is different from being unable to answer DNS. A control-plane outage should not automatically become a serving-plane outage. But Known-Good State Cannot Live Forever Imagine the control plane is unavailable for: 5 minutes Continuing with the last valid policy may be reasonable. What about: 5 hours? Or: 5 days? That depends on the service. Operators need age thresholds. For example: Policy age < warning limit | v Normal serving Policy age > warning limit | v Alert Policy age > critical limit | v Emergency operating procedure The exact durations are application-specific. The important part is monitoring the age of active state. Emergency Response Needs a Predefined Mode Operators should decide what the DNS system will do when normal steering is no longer trustworthy. An emergency policy might be simpler than the normal policy. Normal: Prefix | v ASN | v Country | v Resolver group | v Weighted pool | v Health filter Emergency: Known emergency pool | v Two predefined destinations For example: 192.0.2.10 198.51.100.10 The purpose of emergency mode is not to preserve every steering feature. It is to provide a simple, known behavior when higher-level intelligence is unreliable. Simplicity Matters During Incidents An emergency routing policy should be easy to understand. Operators under pressure should be able to answer: What addresses will DNS return? Which destinations are included? What health assumptions are being used? How do we enter emergency mode? How do we leave it? How do we know it is active? A complicated emergency system can become another incident source. A simple fallback is usually easier to reason about. Emergency Mode Should Not Be Automatic Without Limits Automatic fallback can be useful. It can also create surprises. Suppose the policy source briefly times out. Should the system immediately abandon all normal routing policy? Probably not. A more cautious conceptual sequence is: Dependency fails once | v Retry / continue last known-good state | v Failure persists | v Alert | v Threshold exceeded | v Defined emergency behavior The thresholds and actions depend on the service. The important principle is avoiding extreme reactions to transient failures. Practical Example Consider: api.example.com Possible destinations: Site A 192.0.2.20 Site B 198.51.100.20 Site C 203.0.113.20 The active state is: Snapshot: 51 Policy: Region A -> Site A Region B -> Site B Default -> weighted A/B Health: Site A = healthy Site B = healthy Site C = standby Now several failures occur. At 10:00: Everything healthy At 10:02: Health service unavailable The DNS service continues using recent health information under its configured freshness rule. At 10:04: New Policy 52 arrives But Snapshot 52 fails validation: Pool B missing The system keeps: Snapshot 51 At 10:06: Health information exceeds freshness threshold The health state becomes: Site A = unknown Site B = unknown Site C = unknown The predefined unknown-health policy activates. For example: Use emergency pool: 192.0.2.20 198.51.100.20 At 10:08: Policy source still unavailable DNS continues serving the last known-good routing state combined with the emergency health behavior. Operators receive alerts showing: Active snapshot age Health data age Failed snapshot count Control-plane availability Emergency mode status Nothing about this incident is ideal. But the behavior is predictable. That is the objective. Practical Failure Matrix A useful operational exercise is to document expected behavior for major failures. Failure Existing Valid State Preferred General Behavior Health source unavailable Yes Use bounded recent state, then unknown-health policy Policy source unavailable Yes Continue known-good policy and alert New snapshot invalid Yes Reject new snapshot and keep active version Prefix data unavailable Yes Keep valid data or use broader policy Resolver classification missing N/A Use default resolver behavior Partial update received Yes Do not activate incomplete generation All backends unhealthy Yes Use predefined all-unhealthy policy Control plane unavailable Yes Continue serving current valid state Current state unusable No Enter predefined emergency behavior The specific response will vary by service. What matters is documenting it before failure. All Destinations Unhealthy This case deserves special attention. Suppose: Site A = unhealthy Site B = unhealthy Site C = unhealthy What should DNS return? There is no answer that works for every application. Possible approaches include: Return a designated emergency destination Return one or more degraded destinations Stop returning the normal address records Use another service layer Operators must choose based on application behavior. The important distinction is that: Backend unhealthy does not mean: DNS name does not exist Be Careful With NXDOMAIN NXDOMAIN means the queried name does not exist in DNS. It should not casually be used to represent: The application backend is unhealthy. RFC 2308 defines negative caching as caching knowledge that a DNS name or requested record does not exist. If an outage causes the authoritative service to incorrectly return NXDOMAIN, recursive resolvers may cache that negative result. Then the backend could recover while some clients continue seeing a cached negative DNS response. Conceptually: Backend failure | v Incorrect NXDOMAIN | v Negative cache | v Backend recovers | v Some clients still see failure DNS existence and backend health are separate concepts. Resolver Serve-Stale Can Change Incident Behavior Operators should also remember that authoritative DNS does not control every recursive resolver cache. RFC 8767 defines serve-stale behavior that allows recursive resolvers to use expired DNS data when they cannot successfully refresh it from authoritative servers. This improves resilience in some DNS failure scenarios. It also means: Authoritative policy changed does not guarantee: Every user sees new answer immediately During an incident, some recursive resolvers may temporarily use older data. RFC 8767 explicitly balances resilience against freshness. Failure Handling Should Preserve Query Predictability A useful goal is: Normal condition | v Bounded query work Policy source failure | v Bounded query work Health source failure | v Bounded query work Network data failure | v Bounded query work The answer may become less precise. The query path should not suddenly become much more expensive. For example, avoid turning a missing local classification into: DNS query | v Retry external API | v Timeout | v Try backup API | v Timeout | v Query finally answers A broken control dependency should not introduce uncontrolled waiting into authoritative query processing. Failure Handling Should Prefer Degradation Over Guessing Suppose normal policy precision looks like this: Prefix | v ASN | v Country | v Resolver | v General policy If the prefix database fails: Prefix unavailable | v Skip prefix-specific rule | v Use ASN or broader rule If ASN information is also unavailable: ASN unavailable | v Use geographic or general rule If everything optional is unavailable: Use safe default This is graceful degradation. The alternative is guessing: Signal missing | v Invent classification | v Potentially wrong route Missing information should reduce precision, not produce fictional certainty. Design Risks 1. Destroying Valid State Before New State Is Ready Never assume a new configuration will build successfully. Prepare first. Activate later. 2. Treating Every Failure as Fatal A policy database outage does not necessarily mean the current serving policy stopped being valid. Different failures deserve different responses. 3. Using Old Health Forever Recent health information may help during a short monitoring outage. It eventually becomes unknown. 4. Treating Unknown Health as Down This can turn monitoring failure into application failure. Use an explicit unknown state. 5. Treating Unknown Health as Healthy Forever This creates the opposite risk. Old evidence loses value. 6. Applying Partial Updates Directly Mixed generations make behavior hard to explain and test. Publish complete states where practical. 7. Accepting Syntactically Valid but Operationally Broken Data Parsing success is not enough. Check whether required relationships still exist. 8. Using NXDOMAIN as an Availability Tool NXDOMAIN represents nonexistence and can be negatively cached. Do not use it casually for backend health failure. 9. Having No Emergency Mode If every normal dependency is unavailable, operators still need to know what DNS will do. Define this beforehand. 10. Making Emergency Mode More Complex Than Normal Operation Emergency behavior should generally remove complexity rather than add another large policy tree. Operator Rules Rule 1: Always Keep a Known-Good Generation Do not replace the current serving state until the next state is complete and validated. Current valid state | v Build next state | v Validate | success? / \ yes no | | v v Activate Keep current Rule 2: Track State Age Operators should know: Policy age Network-data age Health-data age Resolver-data age Snapshot age Freshness should be observable. Rule 3: Give Every State Type a Freshness Policy Policy may tolerate one age. Health may tolerate another. Network classification may tolerate another. Do not use one universal timer for unrelated data. Rule 4: Distinguish Unknown From Unhealthy Use: healthy unhealthy unknown when the system needs to represent health uncertainty. Rule 5: Reject Incomplete Snapshots If a required reference is missing, do not publish the generation. Keep the active known-good state. Rule 6: Keep the Query Path Independent From Slow Recovery Work Recovery operations can retry databases, rebuild indexes, and download new datasets. DNS queries should continue using prepared serving state where possible. Rule 7: Define All-Unhealthy Behavior Document exactly what happens if every destination fails health checks. Do not decide during the outage. Rule 8: Define All-Health-Unknown Behavior Monitoring infrastructure can fail independently of application infrastructure. Plan for this separately. Rule 9: Validate Large Changes With Sanity Checks Examples include: Object count changed by 95% Default policy disappeared All pools became empty All prefixes vanished Every health target changed Large unexpected changes deserve additional verification. Rule 10: Monitor Failed Updates Track failures such as: snapshot_build_failed snapshot_validation_failed health_feed_stale policy_feed_stale network_data_stale emergency_mode_active Use bounded metric labels. Rule 11: Preserve Rollback Keep enough known-good state to return to the previous serving generation when appropriate. Do not depend on rebuilding the old state from a broken source during an incident. Rule 12: Practice the Failure Procedure Test: Policy source down Health source down Prefix source down Invalid policy Missing pool Empty dataset Partial update All destinations unhealthy All health unknown Full control-plane outage A failure mode that has never been tested is still an assumption. Common Mistakes Mistake 1: “The Latest Policy Is Always the Best Policy” Only if it is valid. An older complete policy is usually safer than a newer incomplete one. Mistake 2: “If Health Checks Stop, Everything Must Be Down” The monitoring system may be the failed component. Represent uncertainty separately. Mistake 3: “If Health Checks Stop, Everything Is Fine” That assumption is also unsafe. Recent evidence should have a defined lifetime. Mistake 4: “A Successful Database Query Means the Data Is Good” It might return zero rows or incomplete relationships. Validate meaning, not only transport success. Mistake 5: “Apply Each Configuration Change Immediately” If several objects belong to one logical change, partial application can create inconsistent serving state. Build a complete generation first. Mistake 6: “The Control Plane Must Be Available for DNS to Work” A well-separated serving system can often continue using validated local state during temporary control-plane failure. Mistake 7: “Emergency Mode Means NXDOMAIN” It should not. NXDOMAIN means the name does not exist and may be negatively cached. Mistake 8: “Changing DNS Immediately Moves Everyone” Recursive caching prevents that guarantee. RFC 8767 also allows stale cached responses under specific failure conditions. Mistake 9: “More Retries Make DNS More Reliable” Retries inside the critical query path can increase latency and resource use. Recovery work should have controlled limits. Mistake 10: “We Will Decide What to Do During the Incident” That is too late for core failure behavior. Default and emergency policies should already exist. What DNS Can Influence During Failure DNS steering can still influence: Which destination is returned for new resolutions. Which known-unhealthy destinations are excluded. Whether a broader fallback policy is used. Whether an emergency pool becomes active. Which destinations participate in weighted selection. How new DNS resolutions change after a policy update. DNS can continue providing useful traffic direction even when some supporting systems fail. What DNS Cannot Fully Control During Failure DNS cannot guarantee: That recursive resolvers immediately refresh answers. That stale resolver cache entries disappear immediately. That existing TCP connections move to another destination. That HTTP clients open new connections. That BGP selects a particular path. That packets avoid congestion. That every client sees the same answer simultaneously. That ECS will be present. Exact application traffic distribution. RFC 8767 explicitly permits stale cached DNS information to be used in defined failure cases when fresh information cannot be obtained. HTTP behavior has its own semantics defined by RFC 9110, while TCP connection state is defined separately by RFC 9293. A DNS policy change therefore affects future resolution behavior rather than directly moving established application connections. This boundary matters most during incidents because operators may expect DNS changes to produce immediate application-level movement. They cannot guarantee that. Emergency Runbook Example A simple DNS steering incident procedure could look like this: 1. Confirm authoritative DNS is still answering. 2. Identify which dependency failed. 3. Check active snapshot version and age. 4. Check health-data freshness. 5. Confirm whether a failed update was rejected. 6. Confirm active destinations. 7. Check whether emergency mode is active. 8. Test authoritative answers directly. 9. Test through several recursive resolvers. 10. Restore normal operation only after new state has been validated. A direct authoritative query can help: dig @ns1.example.com www.example.com A A normal recursive query can show what a resolver currently sees: dig www.example.com A For compact output: dig www.example.com A +short Remember that resolver results may differ from the current authoritative answer because of caching. Useful Operational Signals Operators should be able to observe at least: Active snapshot version Active snapshot age Last successful policy update Last successful network-data update Last successful health update Number of healthy destinations Number of unhealthy destinations Number of unknown-health destinations Failed snapshot builds Failed validations Emergency-mode status Fallback-policy usage A failure should be visible before users report it. For example: Normal: health_age_seconds = 3 snapshot_age_seconds = 120 fallback_rate = 2% Incident: health_age_seconds = 600 snapshot_age_seconds = 7200 fallback_rate = 85% Even if DNS is still answering correctly, these changes tell operators that the system is running in degraded mode. Key Takeaways DNS steering failure handling should be designed around predictable degradation. A useful model is: NORMAL Fresh valid state | v DNS answers FAILURE New state unavailable | v Existing state still valid? / \ yes no | | v v Keep known-good Emergency state policy | v Monitor age | v Continue recovery Remember these principles: Keep serving state separate from state being built. Do not replace a valid snapshot with an invalid new one. Treat healthy, unhealthy, and unknown as different health states. Give health information a freshness limit. Allow policy and data-source failures to degrade independently where possible. Reject partial or inconsistent updates. Validate data meaning, not only syntax. Keep slow recovery work out of the critical query path. Use broader routing policies when network intelligence is missing. Do not use NXDOMAIN to represent backend health failure. Define all-unhealthy and all-health-unknown behavior before an incident. Keep an emergency serving mode simple. Track the age of every important serving input. Test failure conditions deliberately. The central rule is: When new information cannot be trusted, continue with the last complete known-good state for a bounded period rather than exposing incomplete state to live DNS queries. That gives operators time to repair the control systems without automatically turning every supporting-system failure into a DNS outage. Selective hydration determines what the authoritative process needs. Bounded state controls how much of it can exist. Safe defaults handle missing classification signals. Snapshot validation prevents broken configuration from becoming active. Failure policy determines what happens when updates stop. The result should be an authoritative DNS system that can answer a simple question during an incident: What complete state are we serving right now, and why? If operators can answer that quickly, troubleshooting becomes much easier. If the answer is unclear because policy, health, prefixes, and pools are all changing independently inside the live query path, the system becomes much harder to operate. Production DNS engineering is therefore not only about making the correct routing decision during normal operation. It is also about making the failure behavior understandable. Sources RFC 1034: Domain Names, Concepts and Facilities Defines the core DNS architecture, distributed database model, caching behavior, zones, authoritative servers, and the principle that availability can sometimes take priority over immediate consistency. RFC 1034, RFC Editor RFC 1035: Domain Names, Implementation and Specification Defines DNS messages, queries, responses, resource records, and implementation behavior. RFC 1035, RFC Editor RFC 6891: Extension Mechanisms for DNS, EDNS(0) Defines backward-compatible DNS extension mechanisms used by features such as EDNS Client Subnet. RFC 6891, RFC Editor RFC 7871: Client Subnet in DNS Queries Documents EDNS Client Subnet, including network-specific responses, caching requirements, privacy considerations, and increased cache pressure. RFC 7871, RFC Editor RFC 8767: Serving Stale Data to Improve DNS Resiliency Defines resolver behavior for using expired cached DNS information when authoritative refresh attempts fail, balancing resilience and freshness. RFC 8767, RFC Editor RFC 2308: Negative Caching of DNS Queries Defines negative caching, including cached knowledge that a DNS name or record does not exist. RFC 2308, RFC Editor RFC 9110: HTTP Semantics Defines HTTP semantics and helps distinguish DNS steering from later application-layer request behavior. RFC 9110, RFC Editor RFC 9293: Transmission Control Protocol, TCP Defines TCP connection behavior and explains why a DNS update cannot directly relocate an existing TCP connection. RFC 9293, RFC Editor