It is commonly useful to configure multiple answers for a given domain name and record type. Due to the behavior of public resolvers, this can offer a very simple "round-robin" type behavior.
Multiple A record responses
One typical example is if you have multiple web servers, each with a different IP address, that should serve traffic for a given domain. Say you have a domain, www.examplesite.net, and you want to send traffic to three IP addresses: 18.104.22.168, 22.214.171.124, and 126.96.36.199. Follow these steps to configure multiple answers for a specific domain:
- Log in to the NS1 portal (via https://my.nsone.net/).
- Click DNS in the main navigation to view a list of all DNS zones associated with your account.
- Click the appropriate zone (in this case, examplesite.net). Within the Records tab, click Add Record.
- Set the correct domain (www.examplesite.net) and record type (A). You can enter the first answer 188.8.131.52 in the space provided. Then, click Add Answer.
- Add subsequent answers to the record, clicking Add Answer for each addition. When finished, click Save All Changes.
If you do a DNS lookup for the domain (e.g., dig A @dnsX.pYY.nsone.net www.examplesite.net) where "dnsX.pYY.nsone.net" is one of the nameservers listed under the Nameservers tab in your zone, you should receive all three answers in the response.
Multiple MX record responses
Another typical example is configuring MX (mail exchange) records for your zone. It is common to specify multiple mail servers, each with a different priority value.
For example, maybe you want to set MX for examplesite.net to mail1.examplesite.net with priority 1 (higher), and mail2.examplesite.net with priority 5 (lower).
Follow the same process as for A records, but create an MX record instead. On the record creation page, click Add Answer to add the "mail2" answer. Since the record is an MX record, you will be prompted to enter both a DNS name and a priority value.
Click Save All Changes and perform a query on the new record type (dig MX @dnsX.pYY.nsone.net examplesite.net), and you should see both answers.
Other record types and advanced configuration
You can follow a similar process to configure multiple answers for records of any type. You can also experiment with adding Filter Chains on the detailed record config page to manipulate the list of answers. For example, try adding the Shuffle filter to an A record with multiple answers. The answers will be returned in randomized order--a true round-robin.