Skip to main content
Routing policies are represented as an ordered picker chain. Resource-record metadata supplies the values each picker evaluates.

Presets

Picker types

country, continent, region, geodns, and geodistance select against country codes, continent codes, regions, or record coordinates.
asn selects by autonomous system number. ip selects by IP address or prefix metadata.
weighted_shuffle uses per-record weights. Larger weights receive proportionally more selection over a sufficient sample.
default supplies a fallback. first_n limits the number of eligible records returned. Pickers can also specify a limit and strict behavior where supported.

Resource-record metadata

Records can provide asn, continents, countries, latlong, weight, IP-prefix data, backup, default, and operator notes. Only include metadata used by the picker chain.
Resolver location is not identical to end-user location, and geolocation is not a legal data-residency control. Enforce tenancy and residency in the application.
Test each policy from representative resolver networks and include an intentional fallback for unmatched traffic.