Hybrid routing and DNS
Separate learned routes from installed routes
BGP over managed connectivity exchanges reachability; the cloud may apply its own route precedence, import rules and propagation settings. A session in Established state does not prove that the correct prefix was accepted, installed or advertised back. Inspect received, accepted, selected and effective routes on each side. In the simplified exercise both private and VPN advertise the same 10.81.0.0/16, with local preference 200 and 100 at the factory. Higher local preference wins among otherwise eligible equal-prefix BGP candidates in this model; withdrawing the private candidate selects VPN. Independently arrange the cloud return path using mechanisms supported by that provider. Avoid assuming that a change to local preference controls the remote peer. Reject unapproved default routes and prefixes; use explicit allowlists and maximum-prefix limits where supported.
Diagnose asymmetric forwarding
Imagine a stateful firewall on each edge path, with no shared session state. The factory SYN travels over private edge P to cloud A, but the SYN-ACK returns via VPN edge V. V has not seen the connection and rejects the return in this toy model. Both BGP sessions can be healthy while the application fails. Asymmetry is not inherently wrong in stateless forwarding; it becomes a problem when devices require state or when policies differ. Verify effective routes for the destination and source, then check session evidence, firewall counters and tunnel MTU. After changing one side, verify both directions and retry with a new connection. Existing sessions may not survive failover. Never bypass the firewall to hide the failure.
Private DNS is another dependency
Private DNS answers depend on which resolver receives the query and which zones are visible. In the fictional design, office resolvers are authoritative for factory.example and conditionally forward cloud.example to the cloud inbound resolver at 10.81.1.53; cloud resolvers forward factory.example to 10.80.1.53. Both need correct routes, return paths and policy for UDP and TCP port 53. Avoid reciprocal forwarding of the same suffix, which can create a loop. The answer orders.cloud.example = 10.81.2.20 is not proof of TCP 443 reachability. A query timeout points toward resolver path or availability; NXDOMAIN indicates a negative name answer from a resolver, not necessarily a missing record in every view. Check the intended resolver and cache TTL before changing records. Regional recovery requires reachable resolvers and service endpoints in the surviving region; DNS TTL alone cannot promise instantaneous failover.
Build an evidence-based failover matrix
Use the matrix below as a design acceptance test, not observed measurements. Baseline: verify DNS, TCP 443, intended path and denied development access. Primary loss: both sides select VPN, essential demand fits, and a fresh session succeeds. Region A loss: both links are unavailable; recovery requires region B application, data and DNS readiness. A route leak: reject the unexpected advertisement, record the affected prefix and preserve valid flows. Test AAAA and IPv6 transport independently when enabled, including firewall and packet-too-big handling. Record the time at each stage using synchronized clocks. During a real approved change, use pre-agreed stop thresholds and rollback steps; restoration of a route is only one part of service recovery. Here all evidence is fictional and the learner reasons offline.
Scenario Forward Return EssentialBaseline P P yesPrimary loss V V yesAsymmetric P V no (state)Region A loss none none noCheck Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Hybrid routing and DNS Quiz
Reason about hybrid links, address planning and private DNS.
In the toy equal-prefix BGP selection, local preferences P=200 and V=100. P withdraws. Which remains?
Why might a return packet on V fail when the SYN crossed P?
Where should office queries for cloud.example be sent?
DNS resolves correctly but TCP 443 fails. What does DNS prove?
What validates dual-stack readiness?