Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/hosts not being read?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mickywicky
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2002
Posts: 86
Location: London, UK

PostPosted: Wed Nov 06, 2002 10:38 pm    Post subject: /etc/hosts not being read? Reply with quote

Hi,

rather new Gentoo user, yes I am; but after 4 years of Linux I thought I'd know how to write an /etc/hosts file??
mine looks like this:
-----------
127.0.0.1 localhost
127.0.0.1 kheops kheops.realdomain.org
192.168.101 ipaq ipaq.localdomain
192.168.201 kephren kephren.localdomain
--------------

now when I am connected via ppp to host ipaq, doign a ssh micky@ipaq gives me:
ssh: ipaq: Name or service not known

and ping ipaq gives me:
ipaq: unknown host

However doing any of the above using the IP address works fine.
Like the hosts file is never read... my DNS do not know about these two hosts, and I assume Gentoo is only querying them instead of checking the hosts file first.
In Solaris there is this nsswitch.conf file which you can use to set this, howver I do not recall anything like that on Linux.
Any ideas?
Thanks for any pointers

Micky
Back to top
View user's profile Send private message
mickywicky
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2002
Posts: 86
Location: London, UK

PostPosted: Wed Nov 06, 2002 10:41 pm    Post subject: Reply with quote

forget it, it was a typo... both IP addresses were missing a 1 in the middle... silly me :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum