Gentoo Archives: gentoo-user

From: Iain Buchanan <iaindb@××××××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] telnet localhost
Date: Mon, 27 Mar 2006 23:54:50
Message-Id: 1143503168.30035.20.camel@orpheus
In Reply to: Re: [gentoo-user] telnet localhost by THUFIR HAWAT
1 On Tue, 2006-03-28 at 00:02 +0100, THUFIR HAWAT wrote:
2 > Thanks all, yes, the telnet is working :)
3 >
4 > Just a few minutes ago it wasn't, but I played around with the hosts
5 > file. I don't understand why it's working now and not before because
6 > I'm still using a FQDN which I was using from the beginning. However,
7 > I changed the arrangement of a few things:
8
9 [snip]
10
11 > localhost ~ # cat -n /etc/hosts
12
13 [snip]
14
15 > 11 127.0.0.1 localhost
16 > 12 127.0.0.1 hawat.thufir.gmail.com arrakis
17
18 typically, in your /etc/hosts file (as far as I have learnt it anyway)
19 you would leave the 127.0.0.1 line just with localhost.
20
21 Then put your FQDN, as well as your Shortened-domain-name on your "real
22 ip address" line:
23
24 $ cat /etc/hosts
25 127.0.0.1 localhost
26 172.16.0.52 orpheus orpheus.pcorp.com.au
27
28 So, looking at one of your previous posts:
29
30 10 #127.0.0.1 localhost
31 11 127.0.0.1 hawat.thufir.invalid arrakis localhost
32
33 (line 10 being ignored because it's commented) when you say "look for
34 localhost", what is localhost? it's not even in the hosts file, so
35 nobody knows how to get there!
36
37 I think this is what's happening anyway.
38
39 At least you have it working. I am curious though, are
40 "hawat.thufir.gmail.com" and "arrakis" both names for your machine?
41
42 cya,
43 --
44 Iain Buchanan <iaindb at netspace dot net dot au>
45
46 The major sin is the sin of being born.
47 -- Samuel Beckett
48
49 --
50 gentoo-user@g.o mailing list