Load Balancing Policy

Configure how the DNS server selects an address from a group.

curl -s -X PATCH https://api.1bytedns.ru/client/v1/zones/42/address_groups/5/policy \
  -H "Authorization: Bearer TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"lb_policy": "weighted", "evaluate_health": true}' | python3 -m json.tool

Policies:

PolicyDescription
round_robinCycle through members in order
weightedDistribute according to member weights
failoverUse primary; fail over to secondary if unhealthy
multivalueReturn all healthy members in one response

Body Parameters:

FieldTypeRequiredDescription
lb_policystringYesOne of: round_robin, weighted, failover, multivalue
evaluate_healthbooleanNoConsider health status (default: true)

Last updated: 2026-06-26