dns modify

Prev Next

This command modifies the DNS service configuration. For more information, see DNS-Based Virtual IP Distribution.DNS-Based VIP Distribution

Usage
dns modify [--id ID]
           [--name NAME]
           [--vip IP]
           [--domain-suffix DOMAIN_SUFFIX]
           [--gateway GATEWAY_IP]
           [--enable|--disable]
           [--net-type NET-TYPE]
           [--subnet-cidr CIDR]
           [--vlan VLAN]
Options

--id ID

Specifies the DNS configuration to modify.

--name NAME

Changes the name of the DNS service configuration.

--vip IP

Changes the virtual IP address of the DNS service. DNS requests from your external DNS server must be delegated to this IP.

--domain-suffix DOMAIN_SUFFIX

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.

--gateway GATEWAY_IP

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 service. The gateway IP address must be on same subnet as the DNS service IP address.

--enable|--disable

Enable or disable the DNS service.

--net-type NET-TYPE

Specifies which interface listens for DNS service delegation requests:

  • EXTERNAL_PORT (default).  The on-board server management interface.

  • NORTH_PORT. The client-facing network interface.

  • SOUTH_PORT. The internal network interface.

--subnet-cidr CIDR

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.

--vlan VLAN

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 modify --enable