DNS load balancers respond to queries with one or more of the DNS records that they are configured to split the load between. This is done to distribute load between multiple servers, provide redundancy and reduce latency.
DNS Check supports monitoring A record (IPv4), AAAA record (IPv6) and CNAME record (IPv4 and IPv6) based load balancers. It will notify you if a record becomes unresolvable or starts resolving to the wrong addresses.
This functionality is available for paid accounts only.
Load Balancer Logic
DNS Check compares the list of IP addresses or domain names that you enter to the records returned in response to a DNS query. If the records returned are either a subset or exact match of those that were entered, the check passes.
If any of the records returned in response to the DNS query were not entered into DNS Check, the check fails.
The order in which records are entered into DNS Check and returned in response to queries does not matter.
Here are the fields that make up a DNS load balancer record:
|Name||A fully qualified domain name (FQDN).||www.dnscheck.co.|
|Type||The DNS record type. Set to "A" for IPv4, "AAAA" for IPv6, or "CNAME".||A|
|Addresses||A comma delimited set of IP addresses or domain names. A minimum of 1 and a maximum of 10 may be entered per monitored load balancer||126.96.36.199, 188.8.131.52, 184.108.40.206|
DNS Zone File Examples
Here's an example of how an A record load balancer could look in a DNS zone file:
; Name Type Address nameservers.dnscheck.co. A 220.127.116.11 nameservers.dnscheck.co. A 18.104.22.168 nameservers.dnscheck.co. A 22.214.171.124
If the above zone file is imported into the BIND DNS server, then it will respond to queries for the nameservers.dnscheck.co DNS record with all three records shown above sorted in random order.
DNS servers can also be configured to use different load balancing logic. For example, a load balancer might be configured only to return records that point to healthy servers, randomly return one of its records for each request, or deterministically return records based on the querying IP address' geographic location.
- HOWTO - Configure Load Balancing - a section from Pro DNS and BIND that discusses load balancers in the BIND name server.
- Choosing a Routing Policy - documentation on some of the DNS based load balancing options available in Amazon Route 53.