vserver services name-service getxxbyyy getnameinfo
Gets the name information by using the IP address.
Availability: This command is available to cluster administrators at the advanced privilege level.
Description
The ` vserver services name-service getxxbyyy getnameinfo ` gets the host and service by using the socket 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 IPv4/IPv6 address for which the name information is requested
[-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 gets the name information for the given IP Address:
cluster1::*> vserver services name-service getxxbyyy getnameinfo -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