* [gentoo-user] Name Resolution Problem
@ 2005-07-25 1:06 Russell Slater
2005-07-25 1:20 ` Zac Medico
0 siblings, 1 reply; 11+ messages in thread
From: Russell Slater @ 2005-07-25 1:06 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/html, Size: 606 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Name Resolution Problem
2005-07-25 1:06 [gentoo-user] Name Resolution Problem Russell Slater
@ 2005-07-25 1:20 ` Zac Medico
2005-07-25 3:09 ` Russell Slater
0 siblings, 1 reply; 11+ messages in thread
From: Zac Medico @ 2005-07-25 1:20 UTC (permalink / raw
To: gentoo-user
Russell Slater wrote:
> I am relatively new to Gentoo and I am having a problem resolving
> localhost. I always get "unknown host localhost" I can connect to any
> other site such as www.yahoo.com <http://www.yahoo.com> but nothing else
> works. I have gone through the Gentoo Handbook several times and googled
> the issue but could not find a resolution. Please let me know what you
> files you might need to look at to troubleshoot the issue.
>
> Thanks,
>
> Russ
>
Normally localhost maps to 127.0.0.1 inside /etc/hosts (see the hosts(5) manpage). This file basically allows you to override the normal DNS resolution process for specific host names.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Name Resolution Problem
2005-07-25 1:20 ` Zac Medico
@ 2005-07-25 3:09 ` Russell Slater
2005-07-25 3:14 ` Nick Rout
2005-07-25 3:30 ` W.Kenworthy
0 siblings, 2 replies; 11+ messages in thread
From: Russell Slater @ 2005-07-25 3:09 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/html, Size: 1844 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Name Resolution Problem
2005-07-25 3:09 ` Russell Slater
@ 2005-07-25 3:14 ` Nick Rout
2005-07-25 3:22 ` Russell Slater
2005-07-25 3:30 ` W.Kenworthy
1 sibling, 1 reply; 11+ messages in thread
From: Nick Rout @ 2005-07-25 3:14 UTC (permalink / raw
To: gentoo-user
> The /etc/hosts file has the only the following entry in it:
> 127.0.0.1 localhost
> I cannot get the system to reconize anything that I place in /etc/hosts. For some reason it does not appear that the /etc/hosts file is being processed. Is there a config file somewhere that specifies whether or not the hosts file gets processed? My system is setup for DHCP and resolv.conf gets overwritten every time the system is booted.
Just check first that the lo interface is up? ifconfig will tell you.
also try
ping localhost
ping 127.0.0.1
--
Nick Rout
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Name Resolution Problem
2005-07-25 3:14 ` Nick Rout
@ 2005-07-25 3:22 ` Russell Slater
2005-07-25 3:38 ` Nick Rout
0 siblings, 1 reply; 11+ messages in thread
From: Russell Slater @ 2005-07-25 3:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/html, Size: 1400 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Name Resolution Problem
2005-07-25 3:09 ` Russell Slater
2005-07-25 3:14 ` Nick Rout
@ 2005-07-25 3:30 ` W.Kenworthy
1 sibling, 0 replies; 11+ messages in thread
From: W.Kenworthy @ 2005-07-25 3:30 UTC (permalink / raw
To: gentoo-user
check 'man dhcpcd' to check the arguments to pass to it
(via /etc/conf.d/net) to prevent it overwriting local config files
like /etc/resolv.conf.
Are you using a local bind server? recent updates to localhost
processing in a recent gentoo update did the same for me with clients on
other machines (principly firefox, but sometimes other apps).
eventually I overwrote the gentoo supplied localhost and 127.zone config
files with my own and now its all "sweet". I dont know why browsers
seem to ignore /etc/hosts, but firefox, mozilla and I think IE all do.
My /etc/nsswitch setting is "files DNS" which should make apps
check /etc/hosts first.
BillK
On Sun, 2005-07-24 at 23:09 -0400, Russell Slater wrote:
> The /etc/hosts file has the only the following entry in it:
>
> 127.0.0.1 localhost
>
> I cannot get the system to reconize anything that I place
> in /etc/hosts. For some reason it does not appear that the /etc/hosts
> file is being processed. Is there a config file somewhere that
> specifies whether or not the hosts file gets processed? My system is
> setup for DHCP and resolv.conf gets overwritten every time the system
> is booted.
>
>
> Any ideas?
>
> Russ
...
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Name Resolution Problem
2005-07-25 3:22 ` Russell Slater
@ 2005-07-25 3:38 ` Nick Rout
2005-07-25 3:59 ` Russell Slater
0 siblings, 1 reply; 11+ messages in thread
From: Nick Rout @ 2005-07-25 3:38 UTC (permalink / raw
To: gentoo-user
> lo is up, verified with ifconfig. I can ping 127.0.0.1, however pinging localhost results in "ping: unknown host localhost". I get the same result with anything else that I add to the hosts file.
> Thanks,
> Russ
I would try strace now to see if /etc/hosts is being opened:
strace -e open ping localhost
(if that generates too much lok at man strace, there is an option to
save to a file - redirection does not work IIRC.)
--
Nick Rout
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Name Resolution Problem
2005-07-25 3:38 ` Nick Rout
@ 2005-07-25 3:59 ` Russell Slater
2005-07-25 4:14 ` W.Kenworthy
0 siblings, 1 reply; 11+ messages in thread
From: Russell Slater @ 2005-07-25 3:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/html, Size: 1340 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Name Resolution Problem
2005-07-25 3:59 ` Russell Slater
@ 2005-07-25 4:14 ` W.Kenworthy
2005-07-25 4:29 ` Zac Medico
0 siblings, 1 reply; 11+ messages in thread
From: W.Kenworthy @ 2005-07-25 4:14 UTC (permalink / raw
To: gentoo-user
nsswitch.conf has a number of other entries in it which if missing may
give rise to similar weird problems like this. You might like to
extract it from sys-libs/glibc (the owner on my system) and replace it
with the full file.
BillK
On Sun, 2005-07-24 at 23:59 -0400, Russell Slater wrote:
> Thanks Nick! strace showed that /etc/hosts was not being opened, but
> it showed that nsswitch.conf was being opened but did not exist, so I
> created a nsswitch.conf file with the following line:
>
> hosts: files dns
>
> Now everything works.
>
> Thank you,
>
> Russ
>
>
>
>
>
>
> >From: Nick Rout <nick@rout.co.nz>
> >Reply-To: gentoo-user@lists.gentoo.org
> >To: gentoo-user@lists.gentoo.org
> >Subject: Re: [gentoo-user] Name Resolution Problem
> >Date: Mon, 25 Jul 2005 15:38:12 +1200
> >
> > > lo is up, verified with ifconfig. I can ping 127.0.0.1, however
> pinging localhost results in "ping: unknown host localhost". I get the
> same result with anything else that I add to the hosts file.
> > > Thanks,
> > > Russ
> >
> >I would try strace now to see if /etc/hosts is being opened:
> >
> >strace -e open ping localhost
> >
> >(if that generates too much lok at man strace, there is an option to
> >save to a file - redirection does not work IIRC.)
> >--
> >Nick Rout
> >
> >--
> >gentoo-user@gentoo.org mailing list
> >
>
> -- gentoo-user@gentoo.org mailing list
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Name Resolution Problem
2005-07-25 4:14 ` W.Kenworthy
@ 2005-07-25 4:29 ` Zac Medico
2005-07-25 4:37 ` Russell Slater
0 siblings, 1 reply; 11+ messages in thread
From: Zac Medico @ 2005-07-25 4:29 UTC (permalink / raw
To: gentoo-user
Do you know what may have removed that file? If you have gentoolkit installed then you can do "equery check glibc" to see if any other files are missing.
Zac
W.Kenworthy wrote:
> nsswitch.conf has a number of other entries in it which if missing may
> give rise to similar weird problems like this. You might like to
> extract it from sys-libs/glibc (the owner on my system) and replace it
> with the full file.
>
> BillK
>
>
> On Sun, 2005-07-24 at 23:59 -0400, Russell Slater wrote:
>
>>Thanks Nick! strace showed that /etc/hosts was not being opened, but
>>it showed that nsswitch.conf was being opened but did not exist, so I
>>created a nsswitch.conf file with the following line:
>>
>>hosts: files dns
>>
>>Now everything works.
>>
>>Thank you,
>>
>> Russ
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Name Resolution Problem
2005-07-25 4:29 ` Zac Medico
@ 2005-07-25 4:37 ` Russell Slater
0 siblings, 0 replies; 11+ messages in thread
From: Russell Slater @ 2005-07-25 4:37 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/html, Size: 1738 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-07-25 4:43 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-25 1:06 [gentoo-user] Name Resolution Problem Russell Slater
2005-07-25 1:20 ` Zac Medico
2005-07-25 3:09 ` Russell Slater
2005-07-25 3:14 ` Nick Rout
2005-07-25 3:22 ` Russell Slater
2005-07-25 3:38 ` Nick Rout
2005-07-25 3:59 ` Russell Slater
2005-07-25 4:14 ` W.Kenworthy
2005-07-25 4:29 ` Zac Medico
2005-07-25 4:37 ` Russell Slater
2005-07-25 3:30 ` W.Kenworthy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox