This page explains the options for Recursive DNS resolution within your Amazon Web Services Enterprise VPC.
By default, recursive DNS queries from instances within your VPC will be handled by AmazonProvidedDNS. In many cases, this is all you need.
However, some DNS zones at the University of Illinois are intentionally restricted to allow queries from University clients only, and therefore cannot be resolved by AmazonProvidedDNS. These zones include:
This page describes the three options available for recursive DNS resolution within an Enterprise VPC, summarized graphically in the figure below. The example Infrastructure-as-Code published by Technology Services at https://github.com/techservicesillinois/aws-enterprise-vpc/ includes implementations for all three options.
This is the default, and the preferred option if clients within your VPC do not need to query any University-restricted DNS zones.
Each Core Services VPC (see Amazon Web Services, VPC Guide for Illinois) maintained by Technology Services includes a pair of Core Services Resolvers located in different Availability Zones, with well-known private IPv4 addresses. These recursive DNS resolvers are capable of answering queries for University-restricted DNS zones and for any public DNS zone.
Core Services VPC
Core Services Resolvers
(note: as of this writing there is only one production Core Services VPC, but there may someday be more than one)
To use them, first make sure that your Enterprise VPC has a VPC peering connection to a Core Services VPC. Next, create a custom DHCP Options Set with domain-name-servers set to the well-known private IPv4 addresses of both Core Services Resolvers within that particular Core Services VPC. Finally, associate the new DHCP Options Set with your VPC.
The disadvantage of Option 2 is that the built-in AmazonProvidedDNS also offers its own special behavior (especially with enableDnsHostnames = true, explained in Using DNS with Your VPC) which is specific to your VPC and thus cannot be replicated by the Core Services Resolvers. Examples we are aware of include:
If clients within your VPC need to query University-restricted DNS zones and still take advantage of the special features of AmazonProvidedDNS, the solution is to deploy lightweight Recursive DNS Forwarder instances within your own Enterprise VPC, and assign a DHCP Options Set with domain-name-servers
set to the private IPv4 addresses of your RDNS Forwarders.
RDNS Forwarders do not perform full recursion on their own; instead, they answer each query by forwarding it either to the Core Services Resolvers (if the query is for a University domain) or to your local AmazonProvidedDNS (if the query is for any other domain). Note that you still need a Core Services VPC peering, so that your RDNS Forwarders can communicate with the Core Services Resolvers.
Option 3 combines the best functionality of both worlds. The trade-off is complexity; you have to manage these additional instances, and everything else in your VPC depends on them. The example code from Technology Services includes an RDNS Forwarder module which is designed to be easy to deploy, and to run completely unattended (see documentation within the module code for details). But there's no such thing as completely bug-free software, and if an RDNS Forwarder instance in your VPC unexpectedly stops working, Technology Services will not be able to proactively repair it on your behalf or even to detect that it's broken (unlike the Core Services Resolvers which we actively monitor and maintain).
As always, please contact Technology Services at email@example.com if you have questions or need help.