DNS load balancing

Assign weights to eligible endpoint records. Watch the distribution across fresh DNS answers and account for resolver caching when evaluating application traffic.

Weight a DNS record set
Select record weights

50% / 50%With two healthy targets weighted equally, each has the same chance of being selected for a fresh answer.

Distribute DNS answers across healthy targets

Use weighted records, subnet load balancing and GeoDNS so each resolver gets the intended endpoint. Health checks keep dead pools out of the rotation.

Weighted traffic splits

Send 10% of answers to a new pool, then raise the weight as it proves in.

Subnet load balancing

Finer splits than continent or country when you know the resolver space.

Health-informed rotation

Unhealthy endpoints are removed from eligible answers.

Configuration

Cloud DNS overview
  1. Identify the pools

    Regions, clusters or canary endpoints that can receive traffic.

  2. Set weights or subnets

    Start conservatively on a new pool.

  3. Attach health checks

    Probe an endpoint that reflects whether the application can serve a request.

  4. Watch query and origin metrics

    Confirm the split matches what you intended, then adjust weights.

Operational outcomes

  • Traffic can be split in DNS
  • Canaries do not need 50% of answers
  • Unhealthy pools can be excluded from new answers
  • Subnet policies support tighter control

Frequently asked questions

Is DNS load balancing perfectly even?

No. Resolvers cache answers and represent many users. Use it for coarse splits and region steering, not per-request fairness.

Should I still use an application load balancer?

Yes. DNS chooses a pool. The load balancer still spreads connections inside that pool.

Can I combine this with Cloud CDN?

Yes. DNS can steer to more than one CDN or origin hostname. Cloud CDN origin groups handle delivery-side failover.

How low should the TTL be?

Choose a lifetime that fits the change window and query budget. Lower it in advance and wait out the previous TTL before adjusting weights.