Sponsored Content
Top Forums UNIX for Advanced & Expert Users host alias not working: host not found Post 71726 by Perderabo on Friday 13th of May 2005 04:33:34 PM
Old 05-13-2005
Wow! What version of HP-UX are you using? According to the nsswitch.conf man page, no nsswitch file results in (for hosts):
hosts: nis [NOTFOUND=return] files

This would imply that you are using nis. Only if nis was unavailable (as in during system startup) would the hosts file be referenced. But I've never seen a system without a nsswitch.conf file.

Are you using nis? If so and if your version of hp-ux supports nsswitch.conf, you might try briefly putting a nsswitch.conf file into place with a single line:
hosts: nis [NOTFOUND=continue] files
 

10 More Discussions You Might Find Interesting

1. IP Networking

QNX host cannot ping SCO host, vice versa

The problem I am facing now is that the QNX host could not ping the SCO host and vice versa. They are in the same domain, ie, 172.20.3.xx. As I am very new to Unix, I guess I must have missed out some important steps. Pls help... Thanx alot (2 Replies)
Discussion started by: gavon
2 Replies

2. Solaris

How to delete the files from local host to remote host

Hi all, i am copying .gz files from production server to development server using "scp" command.my requirement is after copying .gz files i want to delete old .gz files(two days back) in development server from production server. like this way i need to delelte .log ,.z and .dmp files... (3 Replies)
Discussion started by: krishna176
3 Replies

3. Shell Programming and Scripting

running commands to remote host from centralized host

Gurus/Experts We have a centralized UNIX/Solaris server from where we can actually ssh to all other UNIX/Solaris servers...I need to write a script that reside on this centerlized server and do FileSystem monitoring (basically run df -h or -k) of other remote servers and then send an email to me... (6 Replies)
Discussion started by: anjum.suri
6 Replies

4. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

5. IP Networking

If 'host' returns not found...

$ host 80.159.xx.xxx Host 222.79.xxx.xxx.in-addr.arpa not found: 3(NXDOMAIN) What does this mean? The person currently using the IP address in IRC is chatting right now, but how come if he's online it doesn't return any information? (1 Reply)
Discussion started by: guitarscn
1 Replies

6. UNIX for Dummies Questions & Answers

Transfer large number of files host to host

Hello.... I have two servers, one has an empty / and the other has a subdirectory with a large number (4 gig) with many, many files. I need a way to transfer the files en masse from the server with the large number of files to the one that is essentially blank. I don't have space on the used... (16 Replies)
Discussion started by: blaine.miller
16 Replies

7. Shell Programming and Scripting

SCP command end with Host Key not found in database

Hi, I'm trying to copy a file from one server to remote server using SCP command. Below is the command i tried and got host key not found in database errror. scp sendfile.txt Remoteserver:/home/xxxx/. Error Message: Host key not found from database Key fingerprint:... (2 Replies)
Discussion started by: skcvasanth
2 Replies

8. IP Networking

ping can not recognize host but host command can

Hi, I have a weird problem. when ever I do ping command like for example ping unix.comI get the following message: # ping unix.com ping: unknown host unix.com but when I use host the computer is able to know the host. # host unix.com unix.com has address 81.17.242.186 unix.com mail is... (2 Replies)
Discussion started by: programAngel
2 Replies

9. Solaris

Need to recover/move diskgroup from failed host to another host

Hi All I am having VxVm on two Solaris hosts. host1 is using disk group dgHR. right now this server went down due to hardware fault. Not I need to import this dgHR into host2 server. Please let me know the procedure for the same. (1 Reply)
Discussion started by: amity
1 Replies

10. Shell Programming and Scripting

Connect to target host from Source host.

Hi All, Need to connect to target host and execute a command and connect back to source host to continue with next set of command execution. Is there a utility/command using which we can connect to target host ? Please suggest. Note: Netezza database is instaled on Linux server. ... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies
NSSWITCH.CONF(5)					      BSD File Formats Manual						  NSSWITCH.CONF(5)

NAME
nsswitch.conf -- name-service switch configuration file DESCRIPTION
The nsswitch.conf file specifies how the nsdispatch(3) (name-service switch dispatcher) routines in the C library should operate. The configuration file controls how a process looks up various databases containing information regarding hosts, users (passwords), groups, netgroups, etc. Each database comes from a source (such as local files, DNS, and NIS), and the order to look up the sources is specified in nsswitch.conf. Each entry in nsswitch.conf consists of a database name, and a space separated list of sources. Each source can have an optional trailing criterion that determines whether the next listed source is used, or the search terminates at the current source. Each criterion consists of one or more status codes, and actions to take if that status code occurs. Sources The following sources are implemented: Source Description files Local files, such as /etc/hosts, and /etc/passwd. dns Internet Domain Name System. ``hosts'' and ``networks'' use IN class entries, all other databases use HS class (Hes- iod) entries. mdnsd Use mdnsd(8) for ``hosts'' lookups, acting as both a system-wide cache for normal unicast DNS as well as providing multicast DNS (``zeroconf'') lookups. multicast_dns Use mdnsd(8) only for multicast DNS ``hosts'' lookups. This would normally be used in conjunction with ``dns'', which would then provide unicast DNS resolver functions. nis NIS (formerly YP) compat support '+/-' in the ``passwd'' and ``group'' databases. If this is present, it must be the only source for that entry. Databases The following databases are used by the following C library functions: Database Used by group getgrent(3) hosts gethostbyname(3) netgroup getnetgrent(3) networks getnetbyname(3) passwd getpwent(3) shells getusershell(3) Status codes The following status codes are available: Status Description success The requested entry was found. notfound The entry is not present at this source. tryagain The source is busy, and may respond to retries. unavail The source is not responding, or entry is corrupt. Actions For each of the status codes, one of two actions is possible: Action Description continue Try the next source return Return with the current result Format of file A BNF description of the syntax of nsswitch.conf is: <entry> ::= <database> ":" [<source> [<criteria>]]* <criteria> ::= "[" <criterion>+ "]" <criterion> ::= <status> "=" <action> <status> ::= "success" | "notfound" | "unavail" | "tryagain" <action> ::= "return" | "continue" Each entry starts on a new line in the file. A '#' delimits a comment to end of line. Blank lines are ignored. A '' at the end of a line escapes the newline, and causes the next line to be a continuation of the current line. All entries are case-insensitive. The default criteria is to return on ``success'', and continue on anything else (i.e, [success=return notfound=continue unavail=continue tryagain=continue] ). Compat mode: +/- syntax In historical multi-source implementations, the '+' and '-' characters are used to specify the importing of user password and group informa- tion from NIS. Although nsswitch.conf provides alternative methods of accessing distributed sources such as NIS, specifying a sole source of ``compat'' will provide the historical behaviour. An alternative source for the information accessed via '+/-' can be used by specifying ``passwd_compat: source''. ``source'' in this case can be 'dns', 'nis', or any other source except for 'files' and 'compat'. Notes Historically, many of the databases had enumeration functions, often of the form getXXXent(). These made sense when the databases were in local files, but don't make sense or have lesser relevance when there are possibly multiple sources, each of an unknown size. The interfaces are still provided for compatibility, but the source may not be able to provide complete entries, or duplicate entries may be retrieved if multiple sources that contain similar information are specified. To ensure compatibility with previous and current implementations, the ``compat'' source must appear alone for a given database. Default source lists If, for any reason, nsswitch.conf doesn't exist, or it has missing or corrupt entries, nsdispatch(3) will default to an entry of ``files'' for the requested database. Exceptions are: Database Default source list group compat group_compat nis hosts files dns netgroup files [notfound=return] nis passwd compat passwd_compat nis FILES
/etc/nsswitch.conf The file nsswitch.conf resides in /etc. EXAMPLES
To lookup hosts in /etc/hosts and then from the DNS, and lookup user information from NIS then files, use: hosts: files dns passwd: nis [notfound=return] files group: nis [notfound=return] files The criteria ``[notfound=return]'' sets a policy of "if the user is notfound in nis, don't try files." This treats nis as the authoritative source of information, except when the server is down. SEE ALSO
getent(1), nsdispatch(3), resolv.conf(5), named(8), ypbind(8) HISTORY
The nsswitch.conf file format first appeared in NetBSD 1.4. AUTHORS
Luke Mewburn <lukem@NetBSD.org> wrote this freely distributable name-service switch implementation, using ideas from the ULTRIX svc.conf(5) and Solaris nsswitch.conf(4) manual pages. BSD
October 25, 2009 BSD
All times are GMT -4. The time now is 07:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy