ONTAP 9.13.1 commands

vserver services name-service dns hosts modify

Modify hostname or aliases

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

Use the vserver services name-service dns hosts modify command to modify existing DNS host table entries.

Parameters

-vserver <vserver name> - Vserver

Use this parameter to specify the Vserver whose host table will be modified.

-address <IP Address> - IP Address

Use this parameter to specify the IP address of the host table entry to modify.

[-hostname <text>] - Canonical Hostname

Use this parameter to specify a full hostname for the host table entry.

[-aliases <text>,…​] - Aliases

Use this parameter to specify alternate hostnames for the host table entry.

Examples

This example changes the host table of vserver vs1 so that the hostname stored in the host table entry for 10.0.0.57 is pgh.example.com.

cluster1::> vserver services name-service dns hosts modify -vserver -vs1 -address 10.0.0.57 -hostname pgh.example.com
1 entry was modified.

This example changes the host table of vserver vs1 to store the name loghost as an alternate hostname for IP address 10.0.0.5.

cluster1::> vserver services name-service dns hosts modify -vserver vs1 -address 10.0.0.5 -aliases loghost
1 entry was modified.
Top of Page