Re: Debian /etc/hosts Behavior

2004-04-19 Thread Colin Watson
On Sun, Apr 18, 2004 at 10:35:22PM -0700, Marc Wilson wrote:
> On Sun, Apr 18, 2004 at 11:22:36PM -0400, Joey Hess wrote:
> > The installer does indeed create that line. In recent daily builds,
> > we've changed things around to the more sane:
> > 
> > 127.0.0.1   localhost   hostname
> 
> Hm... someone's assuming that d-i rather than the more normal boot-floppies
> is in use.

The guy said "a fresh install of unstable". It's a reasonable
assumption. Joey is familiar with installer issues :-)

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



FIXED: Debian /etc/hosts Behavior

2004-04-18 Thread ms419
Thanks Jo! That should save me future problems.

Jack

On Apr 18, 2004, at 8:22 PM, Joey Hess wrote:

[EMAIL PROTECTED] wrote:
Hmm ... I am also running unstable; a fresh install. Fresh as fresh 
can
be! I assumed that the installer had created this line - it asks for
the hostname when configuring the network - but I'd have to do another
installation to be sure.
The installer does indeed create that line. In recent daily builds,
we've changed things around to the more sane:
127.0.0.1	localhost	hostname

--
see shy jo


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Debian /etc/hosts Behavior

2004-04-18 Thread Marc Wilson
On Sun, Apr 18, 2004 at 11:22:36PM -0400, Joey Hess wrote:
> The installer does indeed create that line. In recent daily builds,
> we've changed things around to the more sane:
> 
> 127.0.0.1 localhost   hostname

Hm... someone's assuming that d-i rather than the more normal boot-floppies
is in use.

-- 
 Marc Wilson | Van Roy's Law: An unbreakable toy is useful for
 [EMAIL PROTECTED] | breaking other toys.


signature.asc
Description: Digital signature


Re: Debian /etc/hosts Behavior

2004-04-18 Thread Joey Hess
[EMAIL PROTECTED] wrote:
> Hmm ... I am also running unstable; a fresh install. Fresh as fresh can 
> be! I assumed that the installer had created this line - it asks for 
> the hostname when configuring the network - but I'd have to do another 
> installation to be sure.

The installer does indeed create that line. In recent daily builds,
we've changed things around to the more sane:

127.0.0.1   localhost   hostname

-- 
see shy jo


signature.asc
Description: Digital signature


Re: Debian /etc/hosts Behavior

2004-04-18 Thread ms419
Hmm ... I am also running unstable; a fresh install. Fresh as fresh can 
be! I assumed that the installer had created this line - it asks for 
the hostname when configuring the network - but I'd have to do another 
installation to be sure.

Jack

On Apr 18, 2004, at 11:47 AM, Ken Irving wrote:

On Sun, Apr 18, 2004 at 09:33:11AM -0700, Marc Wilson wrote:
On Sat, Apr 17, 2004 at 10:32:29AM -0700, [EMAIL PROTECTED] wrote:
---
127.0.0.1   kas localhost
---
This realized, it was a quick fix:
---
127.0.0.1   localhost
---
If this entry prevents "hostname -f" and "hostname -d" from working,
why does Debian create it?
Debian doesn't, on any of my machines:
...
Personally, what YOU had in /etc/hosts looks like something that was 
added
locally.
I had the same thing on one machine running unstable (hostname before
localhost), but not on others running stable.  I recently used the
hostname command (followed by some grepping and editing other files
under /etc) to change the host's name; maybe that was responsible for
this format?
--
Ken Irving, [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact 
[EMAIL PROTECTED]




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Debian /etc/hosts Behavior

2004-04-18 Thread Ken Irving
On Sun, Apr 18, 2004 at 09:33:11AM -0700, Marc Wilson wrote:
> On Sat, Apr 17, 2004 at 10:32:29AM -0700, [EMAIL PROTECTED] wrote:
> > ---
> > 127.0.0.1   kas localhost
> > ---
> > This realized, it was a quick fix:
> > ---
> > 127.0.0.1   localhost
> > ---
> > 
> > If this entry prevents "hostname -f" and "hostname -d" from working, 
> > why does Debian create it?
> 
> Debian doesn't, on any of my machines:
> ...
> Personally, what YOU had in /etc/hosts looks like something that was added
> locally.

I had the same thing on one machine running unstable (hostname before
localhost), but not on others running stable.  I recently used the
hostname command (followed by some grepping and editing other files
under /etc) to change the host's name; maybe that was responsible for
this format?

-- 
Ken Irving, [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Debian /etc/hosts Behavior

2004-04-18 Thread Marc Wilson
On Sat, Apr 17, 2004 at 10:32:29AM -0700, [EMAIL PROTECTED] wrote:
> ---
> 127.0.0.1 kas localhost
> ---
> This realized, it was a quick fix:
> ---
> 127.0.0.1 localhost
> ---
> 
> If this entry prevents "hostname -f" and "hostname -d" from working, 
> why does Debian create it?

Debian doesn't, on any of my machines:

[ 9:26 am][pts/492][/home/mwilson]
rei $ hostname -f
rei.moonkingdom.net
[ 9:26 am][pts/492][/home/mwilson]
rei $ hostname -d
moonkingdom.net
[ 9:26 am][pts/492][/home/mwilson]
rei $ ssh filehost
[ 9:31 am][pts/1][/home/mwilson]
filehost $ grep "127.0.0.1" /etc/hosts
127.0.0.1   localhost   localhost.localdomain
[ 9:32 am][pts/1][/home/mwilson]
filehost $ hostname -f
filehost.moonkingdom.net
[ 9:32 am][pts/1][/home/mwilson]
filehost $ hostname -d
moonkingdom.net
[ 9:32 am][pts/1][/home/mwilson]
filehost $ exit
logout
Connection to filehost closed.
[ 9:30 am][pts/492][/home/mwilson]
rei $ ssh mailhost
[ 9:28 am][pts/1][/home/mwilson]
mailhost $ grep "127.0.0.1" /etc/hosts
127.0.0.1   localhost   localhost.localdomain
[ 9:28 am][pts/1][/home/mwilson]
mailhost $ hostname -f
mailhost.moonkingdom.net
[ 9:28 am][pts/1][/home/mwilson]
mailhost $ hostname -d
moonkingdom.net
[ 9:28 am][pts/1][/home/mwilson]
mailhost $ 

What is it they say?  Works great, lasts long time.

Personally, what YOU had in /etc/hosts looks like something that was added
locally.

-- 
 Marc Wilson | BOFH excuse #100: IRQ dropout
 [EMAIL PROTECTED] |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Debian /etc/hosts Behavior

2004-04-17 Thread ms419
I just spent a painful couple of days trying to figure out why Kerberos 
authentication was broken. DNS checked out, but it turns out "hostname 
-f" was only returning the short hostname, due to the following entry 
in "/etc/hosts":
---
127.0.0.1	kas	localhost
---
This realized, it was a quick fix:
---
127.0.0.1	localhost
---

If this entry prevents "hostname -f" and "hostname -d" from working, 
why does Debian create it?

Thanks!

Jack

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]