GSLB Wildcard FQDNs

Overview

In general, an Avi GSLB service has one FQDN configured. When multiple FQDNs represent the same GSLB service instead of one GSLB service, wildcard for these domains is configured on Avi Vantage. These FQDNs are associated with the same set of virtual services by turning on the wildcard option. Suppose www.foo.com, www.foo.us, www.foo.biz all refer to the same global application. It is possible to configure an Avi GSLB service by specifying such a list of dissimilar domains.

Use Case

The following are the use case when a wildcard match for FQDNs are configured:

  • foo.com is the subdomain delegated to Avi.
  • t1.test.finance.avi.com, t2.test.finance.avi.com, m1.test.finance.avi.com, and so on all point to the same application or front end the same application.

In this case, add a GSLB service for test.finance.avi.com, and enable the wildcard option to indicate that any FQDN machining *.test.finance.avi.com should go to the same set of applications.

Configuring Wildcard Match using Avi CLI

configure gslbservice gsvc-5
[admin:10-10-25-10]: > TAB
wildcard_match Enable wildcard match of FQDN: If an exact match is not found in the DNS table, the longest match is chosen by wildcarding the FQDN in the DNS request. Default is false.
[admin:10-10-25-10]: gslbservice> wildcard_match
Overwriting the previously entered value for wildcard_match
[admin:10-10-25-10]: gslbservice> save

The above is supported only via the CLI.

Similarly, static DNS records may be identified by wildcard as well.


[admin:10-10-25-10]: virtualservice:static_dns_records>
wildcard_match Enable wild-card match of FQDN: If an exact match is not found in the DNS table, the longest match is chosen by wildcarding the FQDN in the DNS request. Default is false.
[admin:10-10-25-10]: virtualservice:static_dns_records> save

Scenario 1

  • subdomain name is avi.com and
  • App domain name is demo.avi.com.

The wildcard option to meet the above requirement is to use *.demo.avi.com as the wild card option as shown below:


[admin:testcontroller-2]: > configure gslbservice gs1
[admin:testcontroller-2]: gslbservice> domain_names demo.avi.com 
[admin:testcontroller-2]: gslbservice> wildcard_match 
Overwriting the previously entered value for wildcard_match
[admin:testcontroller-2]: gslbservice> save

Notes:

  • domain_names : demo.avi.com: This app domain name can be configured from GUI as well

  • gslbservice> wildcard_match: Flag for enabling wildcard

Scenario 2: Wildcard for the subdomain itself

If the requirement is to have wildcard for the subdomain itself i.e. *.avi.com, configure the app domain name from the Avi CLI and enable wildcard match on the same as shown below.


[admin:testcontroller-2]: > configure gslbservice gs1
[admin:testcontroller-2]: gslbservice> domain_names avi.com 
[admin:testcontroller-2]: gslbservice> wildcard_match
Overwriting the previously entered value for wildcard_match
[admin:testcontroller-2]: gslbservice> save

Notes:

  • App domain name: avi.com
  • In this case, domain name like this can not be configured from the Avi UI.

Configuring DNS Static Records

Static records can be configured from the Avi UI as well. Navigate to Application > virtual service and click on the Static DNS Records.

UI screen showing wildcard option

  • GSLB Feature on Avi Vantage