> From [EMAIL PROTECTED] Sun Feb  3 14:49:02 2002
> From: Sorin Lazareanu <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Date: Sun, 3 Feb 2002 17:51:39 -0500
> Subject: checkpc problem
>
> I am running RedHat 7.2 with the LPRng-3.8.5-1.  When I run "checkpc",
> I get the message:
>
> 2002-02-03-17:33:31.543 Get_local_host: hostname 'phi' bad
>
> I tried to find a good solution to this problem - including Web searches -, but it 
>seems
> that there is an issue with the libraries provided by RedHat. 
>
> Below is a selection from: "checkpc -D3":
>
> 2002-02-03-17:14:43.738 [1206] checkpc  Find_fqdn: host 'phi'
> 2002-02-03-17:14:43.787 [1206] checkpc  Find_fqdn: gethostbyname2 returned 0x0
> 2002-02-03-17:14:43.811 [1206] checkpc  Find_fqdn: gethostbyname returned 0x0
> 2002-02-03-17:14:43.812 [1206] checkpc  Find_fqdn: no entry for host 'phi'
> 2002-02-03-17:14:43.812 [1206] checkpc  Get_local_host: fqdn=<NULL>
> 2002-02-03-17:14:43.812 [1206] checkpc  setstatus: msg 'Get_local_host: hostname 
>'phi' bad'
> 2002-02-03-17:14:43.812 [1206] checkpc  Trim_status_file: file 'status.%P' max 10, 
>min 0
> 2002-02-03-17:14:43.814 [1206] checkpc  (ERR) Get_local_host: hostname 'phi' bad
>
> In version 7.1, gethostbyname2 and gethostbyname used to return strings - not 
>anymore.
> My /etc/nsswitch.conf is identical in 7.1 and 7.2.  The line regarding the hosts 
>contains:
>
> hosts:      files nisplus dns
>
> Is a work around possible? Do I have to update the libraries?  In what package 
>should they be?
>
> I greatly appreciate your help and work!
>
> Thank you,
> -- 
> Sorin Lazareanu
>

I duplicated this when I removed my /etc/resolv.conf file.
Make sure that you have an /etc/resolv.conf file and that it
has a 'nameserver' and 'search' entry in it:

search private
nameserver 10.0.0.1

You can test that you can find a host by using:

host -a phi

OR

ping phi

If host or ping does not find the host name then you have REAL
problems.

Patrick

Patrick Powell                 Astart Technologies,
[EMAIL PROTECTED]            9475 Chesapeake Drive, Suite D,
Network and System             San Diego, CA 92123
  Consulting                   858-874-6543 FAX 858-279-8424 
LPRng - Print Spooler (http://www.lprng.com)

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to