NSX Advanced Load Balancer supports the configuration of a hostname field for GSLB pool members. If configured, this field is used as the host header in GSLB HTTP and HTTPS health monitor. CNAME/FQDN is used in the GSLB monitor if the hostname field is not configured.

Configuring hostname field using NSX Advanced Load Balancer CLI

Log in to the NSX Advanced Load Balancer CLI and use the hostname <hostname_string> command under select gslbservice mode to use the hostname for the GSLB monitor for the desired GSLB service.

  1. The detailed steps are mentioned below:

    [admin:ctlr-1]: > configure gslbservice <gslb service name>
  2. Identify pool (group) index using where command:

    [admin:ctlr-1]: gslbservice> where
    
    ------------------------------------------------------------------------------------+
    
    Field
    
    Value
    
    ------------------------------------------------------------------------------------+
    
    uuid gslbservice-ebdd873c-85e8-41d5-be5d-7f0145c68831
    
    name gs1
    
    domain_names[1] abcd.com
    
    groups[1]
    
    name  gs1-pool
    
    priority 9
    
    algorithm GSLB_ALGORITHM_ROUND_ROBIN
    
    members[1]
    
    ip 10.140.61.13
    
    ratio 1
    
    enabled True
    
    hostname  xyz
    
    enabled True
    
    down_response
    
    type GSLB_SERVICE_DOWN_RESPONSE_NONE
    
    health_monitor_refs[1] System-GSLB-HTTPS
    
    controller_health_status_enabled True

    In the above example, 1 is the index value for gs-pool1.

  3. Use the group index command to select the desired pool.

    [admin:ctlr-1]:gslbservice> groups index <pool_index>
  4. Identify pool member index using where command:

    [admin:ctlr-1]:gslbservice:groups> where
    
     ----------------------------------------+
    
     Field
    
     Value
    
     ----------------------------------------+
    
     name  gs1-pool
    
     priority 9
    
     algorithm GSLB_ALGORITHM_ROUND_ROBIN
    
     members[1]
    
     ip 10.140.61.13
    
     ratio 1
    
     enabled True
    
     hostname xyz
    
     enabled True
    
     ----------------------------------------+

    In the above example, the pool member(10.140.61.13) index is 1.

  5. Select pool member using the index value.

    [admin:ctlr-1]:gslbservice:groups> members index <pool_memeber_index>
  6. Configure hostname once the pool member is selected.

    [admin:ctlr-1]:groups:members> hostname <hostname_string>
  7. Save the configuration (pool member configuration).

    [admin:ctlr-1]:groups:members>save pool -> save gslbservice
Note:

In NSX Advanced Load Balancer, SNI extension is also supported for GSLB HTTPS health monitor. In this method, the hostname is used as the server name. If the hostname is not configured, CNAME or FQDN is used for the health monitor.