vserver services name-service getxxbyyy gethostbyaddr
Gets the host information from the IP address.
Availability: This command is available to cluster administrators at the advanced privilege level.
Description
The ` vserver services name-service getxxbyyy gethostbyaddr ` gets the host name by using the IP address. The underlying service for doing the lookup is selected based on the configured name service switch order.
Parameters
- -node {<nodename>|local}- Node Name (privilege: advanced)
- 
Use this parameter to specify the node where the lookup will be performed 
- -vserver <vserver name>- Vserver Name (privilege: advanced)
- 
Use this parameter to specify the Vserver where the lookup will be performed 
- -ipaddress <IP Address>- IP Address (privilege: advanced)
- 
Use this parameter to specify the IPv4/IPv6 address for which the host information is needed 
- [-show-source {true|false}]- Source used for Lookup (privilege: advanced)
- 
Use this parameter to specify if source used for lookup needs to be displayed 
- [-use-cache <true>]- Enable/Disable cache (privilege: advanced)
- 
If set to true, locally-cached values will be used. The default value isfalse.
Examples
The following example requests host information for the given IP address:
cluster1::*> vserver services name-service getxxbyyy gethostbyaddr -node cluster1-01 -vserver vs1 -ipaddress 127.0.0.1 -show-source false -use-cache false IP address: 127.0.0.1 Host name: localhost
 PDFs
PDFs