DNS Provider (Avi Vantage)

This article walks through the configuration of DNS profile and Avi Vantage’s native DNS hosting solution. The Avi Vantage DNS solution is available for the following clouds:

  • Containers (Mesos, OpenShift, Docker UCP, Rancher)
  • Linux server
  • VMware
  • No Access
  • OpenStack
  • Amazon Web Services
  • Google Cloud Platform

See also: Service Discovery Using IPAM and DNS

DNS Configuration

  1. Navigate to Templates -> IPAM/DNS Profile and create a DNS profile.
  2. Add one or more DNS Service Domain names. Avi Vantage will be the authoritative DNS server for these domains.
  3. Configure a TTL value for all records for a particular domain, or leave the Record TTL field blank to accept the default TTL of 300 seconds.
  4. Click Save.

avi-dns-profile

 

Using Avi Vantage DNS

After configuring a DNS profile (above) with a set of domains for which Avi Vantage DNS will be serving records, configure a DNS virtual service in Avi Vantage. DNS high availability and Interoperability with other DNS providers (Mesos-DNS, for example) are two big advantages of using a DNS VS.

Setting up DNS virtual service:

  1. (Optional) Create a DNS Pool with DNS server members as shown below. This will make Avi DNS handle all DNS requests for which it does not host domains natively. For example, if the Avi Vantage DNS profile contains authoritative domain "test.avi," then this DNS VS will host all the records for this domain and additionally with a pool configured as below, it can relay the requests to DNS server members for non-authoritative domains like "google.com".

dns-pool-config

 

2. Create DNS Virtual Service

  • Provide a publicly-accessible virtual IP address.
  • Choose “System-DNS” in the Application Profile pulldown.
  • Check ”Ignore network reachability constraints for the server pool.”

dns-vs-config

If the corporate DNS server is on an external network (requires routing for SE data traffic to reach the DNS server), then add a static route to the external network as shown below (if a default route is not already configured):

Navigate to Infrastructure > Routing > Create and add a Default-Gateway IP address for the cluster. After this configuration and if the DNS virtual service was down, it should now be up.

static-route Service Discovery using Avi Vantage as IPAM and DNS Provider

 

3. Navigate to Administration > Settings > DNS Service and enable this DNS virtual service to start hosting application records. Multiple DNS virtual services can be configured for redundancy in the cluster.

dns-sys-config

 

4. Enable Avi DNS service in your data center using one of the following two options.

  • Add DNS VIPs (“10.160.160.100” as configured above) to the nameservers’ list in /etc/resolv.conf on all nodes requiring service discovery. Create applications and verify resolution works for the application’s FQDN by issuing “dig app.testdomain.avi” anywhere in the cluster.
  • Add DNS VIP in the corporate DNS server as the nameserver for serving domain names configured in the DNS profile above. Any requests to “testdomain.avi” will be redirected to and serviced by the Avi DNS service. Alternately, Avi DNS server can be the main front-end DNS server and the corporation DNS servers can be configured as Avi DNS pool members.

 


Avi Vantage DNS Configuration

When creating an AWS cloud, users can choose Avi Vantage’s native DNS provider along with AWS Route 53. The below configuration shows configuring DNS with AWS cloud. The steps to configure other clouds are similar.

Configuration

Avi Vantage native DNS can be configured as explained in the above section (DNS Configuration) or can be created directly while creating the AWS cloud.

  1. Navigate to Infrastructure->Clouds, and create a new cloud by clicking "Create button."

    Create AWS cloud

    cloud-details
  2. The AWS VPC and Availability Zones configuration page has the new DNS profile option, as highlighted below.

    AWS cloud AVI DNS option
  3. Choose from an existing Avi Vantage native DNS provider or create a new Avi Vantage native DNS provider and assign it to the cloud being created.AWS cloud -avi dns configuration
  4. If required, create a new Avi Vantage native DNS profile, and assign it to the the cloud being created. Complete the cloud creation with other appropriate parameters, such as VPC network and SE management network.

    AWS cloud - new avi dns profile
    AWS cloud - new avi dns profile-1This completes the configuration of an AWS cloud with Avi Vantage native DNS provider.

Using Avi Vantage DNS With the Cloud in Virtual Service Creation

Having completed the configuration described above, when creating any virtual services in this cloud, FQDNs specified will be resolved by the Avi Vantage native DNS provider attached to the AWS cloud.

AWS cloud - VS with FQDN option

Limitations and Restrictions of Using Avi Vantage DNS in the cloud configuration

  1. Both Route 53 and Avi Vantage native DNS cannot be configured/enabled at the same time on the AWS cloud.
  2. When the AWS cloud has a virtual service with FQDNs resolved by either Avi Vantage DNS or Route 53,
    • Removal of the cloud is not allowed until the existing virtual service with FQDN is removed from the cloud.
    • Changing the DNS provider (i.e., either removal of existing or changing from existing Avi Vantage DNS provider to Route 53 or vice versa) is not allowed until the existing virtual service with FQDN is removed from the cloud.