Net configuration, Host name lookup failure

Net configuration, Host name lookup failure

Post by Rolf Ebe » Thu, 18 Aug 1994 19:11:14



I still have a problem with my configuration. Perhaps someone can give
me a hint, where to look for more info.

If I type

% telnet localhost

I get a "Host name lookup failure". this happens with and without a
running named. Of course, my /etc/hosts file has correct permissions (I
had even set it to 777, just to try it out). The commands 'hostname' and
'domainname' give correct results, though. I don't know what can still
be wrong with my setup.

        Thanks
                Rolf

-----------------------------------------------------------------------------
Rolf Ebert      Conseil en Energetique et Simulation               (Team Ada)
                Beratung fuer Energiesysteme und Simulation


-----------------------------------------------------------------------------
--
-----------------------------------------------------------------------------
Rolf Ebert      Conseil en Energetique et Simulation               (Team Ada)
                Beratung fuer Energiesysteme und Simulation


-----------------------------------------------------------------------------

 
 
 

Net configuration, Host name lookup failure

Post by Daniel Tr » Sun, 21 Aug 1994 00:42:48



Quote:>I still have a problem with my configuration. Perhaps someone can give
>me a hint, where to look for more info.
>If I type
>% telnet localhost
>I get a "Host name lookup failure". this happens with and without a
>running named. Of course, my /etc/hosts file has correct permissions (I
>had even set it to 777, just to try it out). The commands 'hostname' and
>'domainname' give correct results, though. I don't know what can still
>be wrong with my setup.
>        Thanks
>                Rolf

Your /etc/hosts file must have this line
127.0.0.1   localhost.  permission 777 doesn't solve your problem.  The file
should be 644 owned by root.



 
 
 

Net configuration, Host name lookup failure

Post by Greg Smi » Sun, 21 Aug 1994 02:31:43



: >If I type

: >% telnet localhost

: >I get a "Host name lookup failure". this happens with and without a
: >running named. Of course, my /etc/hosts file has correct permissions (I
: >had even set it to 777, just to try it out). The commands 'hostname' and
: >'domainname' give correct results, though. I don't know what can still
: >be wrong with my setup.

: >        Thanks
: >                Rolf

: Your /etc/hosts file must have this line
: 127.0.0.1   localhost.  permission 777 doesn't solve your problem.  The file
: should be 644 owned by root.


WARNING: the following may not be secure.

I've also noticed that I got hostname lookup failures when the other host
related files in /etc did not have open permissions.  I've solved the
problem by chmod a+r /etc/host*

This gives everyone the ability to read
/etc/host{s.allow,s.deny,.conf,.equiv}
THIS MAY BE A SECURITY HOLE.  But until I narrow down the exact files
necessary to be readable, I'll keep it this way.

The other clue used to determine if this will fix your problem is that as
a normal user, you may get "Hostname lookup failure," but as root,
everything works fine.  If this is not the case, you may want to look
into setting up /etc/resolv.conf

Hope this helps,

Greg Smith

 
 
 

Net configuration, Host name lookup failure

Post by Rolf Ebe » Thu, 25 Aug 1994 20:14:48



Quote:> : >If I type

> : >% telnet localhost

> : >I get a "Host name lookup failure". this happens with and without a
> : >running named. Of course, my /etc/hosts file has correct permissions (I
> : >had even set it to 777, just to try it out). The commands 'hostname' and
> : >'domainname' give correct results, though. I don't know what can still
> : >be wrong with my setup.

> : >        Thanks
> : >                Rolf

Both posted hints didn't solve my problem. But I finally came across the
new Networks Administration Guide. Somewhere in this guide the auther
talks about /etc/resolv.conf (someone else already told me about this
file) and /etc/host.conf. This last file did not exist on my system,
which was the reason that all host name lookups failed.

I think it would ba good idea to have program like 'resolvchk' (similar
to uuchk) which generats reports about the current configuation of the
resolver library with warning messages about syntax errors in the config
files or missing config files.

        Rolf
--
-----------------------------------------------------------------------------
Rolf Ebert      Conseil en Energetique et Simulation               (Team Ada)
                Beratung fuer Energiesysteme und Simulation


-----------------------------------------------------------------------------

 
 
 

1. Help sendmail configuration on AIX 4.2 -Host Name Lookup failure

Hi,
We are configuring sendmail on a new rs6000 with AIX 4.2 and when we
issue the following

$ /usr/lib/sendmail -v max < /etc/test  

we get back the following



Lookup Failure

We are a small environment and do not use DNS or plan to.

Can anyone help with what the problem is. We are using m4 to build mc
file to create the sendmail.cf.

Anyhelp would be appreciated by sending email to me

tnx
les

2. Badly Fragmented Linux Journal

3. "Deferred: Name server: nohost: host name lookup failure"

4. RFC: Add-on patches for both production AND research kernels

5. dip -t gives "linux: Host name lookup failure".

6. driver problem

7. Unable to find IP address / host name lookup failure with DHCP (dhclient)

8. "Command not found" - preinst.sh

9. Q: pppd Host name lookup failure

10. talk: Host name lookup failure

11. DIP 'Host name lookup failure'.

12. talk "Host name lookup failure"

13. Host name lookup failure