dnsglobal

Use this command to configure the DNSGlobal properties.

Usage

FlexSwitch(config)#dnsglobal <context> <value>

Settings

Context Description
Attempts The number of times the resolver will send a query to its name servers before giving up and returning an error to the calling application default: 2
Domain Local domain name
Rotate True/False Enable/Disable round-robin selection of nameservers from among those listed default: true
Timeout The amount of time in seconds the resolver will wait for a response from a remote name server before retrying the query via a different name server default: 2

Note

Rotate Context Usage: To set the Rotate context value to true, enter dnsglobal <Rotate> with no value following.
To set the Rotate context value to false, enter no dnsglobal <Rotate> with no value following.

Available Commands

Command Purpose
dnsglobal Attempts <integer>
dnsglobal Rotate Enables or Disables round-robin selection of dns servers (See Note above).
dnsglobal Domain <string> Set the local domain name.
dnsglobal Timeout <integer> Set the time, in seconds, the resolver is to wait for a response from a remote name server before trying another server.

Example

Commands:

lexSwitch(config)#dnsglobal Attempts 5
FlexSwitch(config)#dnsglobal Rotate 
FlexSwitch(config)#dnsglobal Domain flexdns
FlexSwitch(config)#dnsglobal Timeout 5
FlexSwitch(config)#apply 

Response:

Applying Config:
id: 2   object: DNSGlobal   status: APPLIED CONFIG  valid: True delete: False num user cmds: 5
 command                     attr         value      model attr    iskey    required    userprov    time provisioned         
-----------------------------------------------------------------------------------------------------------------------------
 dnsglobal Attempts 5        Attempts     5          Attempts      False                X           Tue Sep  5 16:54:33 2017 
                             dnsglobal    default    SystemId      True     X           X           Tue Sep  5 16:55:12 2017 
 dnsglobal Rotate            Rotate       True       Rotate        False                X           Tue Sep  5 16:54:39 2017 
 dnsglobal Domain flexdns    Domain       flexdns    Domain        False                X           Tue Sep  5 16:55:00 2017 
 dnsglobal Timeout 5         Timeout      5          Timeout       False                X           Tue Sep  5 16:55:12 2017 

sdk:updateDNSGlobal(default,Attempts=5,Rotate=True,Domain=flexdns,Timeout=5) result: SUCCESS: http status code: 200