nsquery man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

nsquery(1)							    nsquery(1)

NAME
       nsquery - query the Name Service Switch backend libraries

SYNOPSIS
       lookup_type lookup_query [lookup_policy]

DESCRIPTION
       is  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 nss‐
       witch.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.

EXAMPLES
       Lookup 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 VALUE
       returns the following values:

       Success.
       Invalid Usage.
       Unknown Action.
       No match found in any name services queried.

WARNINGS
       The and lookup_type values are to be obsoleted.	For  use  or  instead.
       For use or instead.

AUTHOR
       was developed by Hewlett-Packard.

SEE ALSO
       nsswitch.conf(4).

								    nsquery(1)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net