This command creates a DNS server configuration. For more information, see DNS-Based Virtual IP Distribution.
Usage
dns create --name NAME --ip IP [--domain-suffix DOMAIN_SUFFIX] [--gateway GATEWAY_IP] [--enable|--disable] [--net-type NET-TYPE] [--subnet-cidr CIDR] [--vlan VLAN]
Required Parameters
| Specifies a name for the DNS service configuration. |
| Assigns an IP address to the DNS service. DNS requests from your external DNS server must be delegated to this IP. |
Options
| Specifies a suffix to append to domain names of each VIP pool. The suffix should complete each domain name to form a valid FQDN for DNS requests to target. For example, if you have two VIP pools pool1 and pool2, you can set the domain name domain1 on pool1 and domain name domain2 on pool2 and the domain suffix to .vastdata.ourcorp.com. Requests for domain1.vastdata.ourcorp.com will be distributed among the VIPs in pool1 while requests for domain2.vastdata.ourcorp.com will be distributed among the VIPs in pool2. |
| If the external DNS server doesn't reside on the same subnet as the DNS service IP address, include this option to specify the IP address of a gateway through which to connect to the DNS server. The gateway IP address must be on same subnet as the DNS service IP address. |
| The DNS service is disabled by default. Include the |
| Specifies which interface listens for DNS service delegation requests:
|
| Specifies the IP subnet, in CIDR format, on which the DNS service IP address resides. In CIDR notation, the subnet is expressed as the number of bits of each IP address that represent the subnet address. For example, the subnet mask 255.255.0.0 is expressed as 16 in CIDR notation. Specify only the trailing CIDR decimal number that indicates the subnet mask. For example, if the DNS service IP is 192.0.2.3 and the CIDR subnet is 24, specify 24. |
| Specifies a VLAN. If your external DNS server is only exposed to a specific VLAN, include this option and specify the DNS server's VLAN to enable communication with the DNS service. |
Example
vcli: admin> dns create --name vast_dns --ip 192.0.2.0 --domain-suffix vastdata.ourcorp.com --gateway 192.0.4.0 --enable --subnet-cidr 16