Query: nsquery
OS: hpux
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
nsquery(1) General Commands Manual nsquery(1)NAMEnsquery - query the Name Service Switch backend librariesSYNOPSISlookup_type lookup_query [lookup_policy]DESCRIPTIONis used to find the Name Service that returned the response to a or function call. This application is Name Service Switch aware and fol- lows the lookup policies in The supported lookup_type values are: Used to resolve host name or IP Address lookups. Used to resolve user name or UID lookups. Assumes that a numeric value is a UID. This option is to be obsoleted. Use and instead. Used to resolve user name lookups. Used to resolve UID lookups. Used to resolve group name or GID lookups. Assumes that a numeric value is a GID. This option is to be obsoleted. Use and instead. Used to resolve group name lookups. Used to resolve GID lookups. Used to resolve host name or IP Address lookups. Only IPv6 and IPv4-mapped IPv6 address will be displayed for host name lookups. The lookup_query can either be a host name, IP Address (IPv4 only), user name, user ID, group name, or group ID. The lookup_policy must be a valid lookup policy described in nsswitch.conf(4). If the policy is invalid, the system default policy will be used. The default values for lookup_policy are: dns [NOTFOUND=return] nis [NOTFOUND=return] files files nis files nis dns [NOTFOUND=return] files will display the lookup policy being used, the name of the service being queried, and the result of the query.EXAMPLESLookup host hondo using the default hosts lookup policy. Lookup host with ip address 15.204.204.204 using "dns files" as the hosts lookup policy. Lookup user dog using "ldap" as the passwd lookup policy. Lookup user ID 105 using the default passwd lookup policy. Lookup group wayne using group lookup policy "nis [NOTFOUND=RETURN] files". Lookup group 22 using the default group lookup policy. Lookup host rio using "dns" as the ipnodes lookup policy.RETURN VALUEreturns the following values: Success. Invalid Usage. Unknown Action. No match found in any name services queried.WARNINGSThe and lookup_type values are to be obsoleted. For use or instead. For use or instead.AUTHORwas developed by Hewlett-Packard.SEE ALSOnsswitch.conf(4). nsquery(1)
Related Man Pages |
---|
nsswitch.conf(5) - suse |
nsswitch.conf(5) - minix |
nsswitch.conf(5) - mojave |
nsswitch.conf(5) - plan9 |
nsswitch.conf(5) - bsd |
Similar Topics in the Unix Linux Community |
---|
Network Configuration Commands..... |
Lookup on a file |
resolve one IP on DNS server |
sol 10 sparc cant join dns |
Host name Lookup Failure |