Configure GSLB for wildcard domain

You can bind a wildcard DNS domain to a GSLB virtual server. Users accessing the applications behind a wildcard domain are routed to the best optimal data center, which hosts those applications. The wildcard domain handles requests for non-existent domains and subdomains. For more information about wildcard domains, see Supporting wildcard DNS domains.

To configure GSLB for a wildcard domain, you must first configure the basic GSLB setup. For details on how to configure a basic GSLB setup, see Configuring GSLB Entities Individually.

To configure a GSLB setup for wildcard domain by using the CLI

Perform the following steps to configure a GSLB setup for wildcard domain:

  1. Create the GSLB sites.

    add gslb site site1 10.0.1.10
    add gslb site site2 20.0.1.10
    
  2. Add the GSLB services for each site participating in the GSLB setup.

    add gslb service svc1 -sitename site1 10.0.1.10  http 80
    add gslb service svc2 -sitename site1 10.0.1.10  http 80
    add gslb service svc3 -sitename site2 20.0.1.10  http 80
    add gslb service svc4 -sitename site2 20.0.1.10  http 80
    
  3. Add the GSLB virtual server that references a service being used in the GSLB setup.

    add gslb vserver gslb_vs http
    
  4. Add an ADNS service that listens to the DNS queries.

    add service adns_udp 10.14.39.21 ADNS 53
    
  5. Bind the GSLB services to the GSLB virtual server.

    bind gslb vserver gslb_vs -service svc1
    bind gslb vserver gslb_vs -service svc2
    bind gslb vserver gslb_vs -service svc3
    bind gslb vserver gslb_vs -service svc4
    
  6. Create a zone.

    add dns soaRec test.com -originServer n1.test.com -contact n1.test.com
    add dns nsrec test.com n1.test.com
    add dns nsrec test.com n2.test.com
    add dns zone test.com -proxymode no
    
  7. Bind the domain name to the GSLB virtual server.

    bind gslb vserver gslb_vs -domainName *.test.com
    

Configure GSLB for wildcard domain