[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#327024: marked as done (127.000.000.001 is dead, long live 127.0.0.1, or "hostname: Unknown host")



Your message dated Mon, 5 Feb 2007 22:34:58 +0100
with message-id <20070205213458.GA13133@hades.madism.org>
and subject line 127.000.000.001 is dead, long live 127.0.0.1, or "hostname: Unknown host"
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libc6
Version: 2.3.5-6
Severity: serious


Hallo,

I have the (bad, it seems) habitude of putting leading zeroes in the
IP-addresses in /etc/hosts.

eg.

127.000.000.001 localhost.localdomain localhost
192.168.001.002 ghp-medp4.ghp.be  ghp-medp4

Since I ran aptitude last weekend (3/9/2005), and libc6 was upgraded (amongst
others!), I have the following problem:

# hostname
ghp-medp4
# hostname -v -f
gethostname()=`ghp-medp4'
Resolving `ghp-medp4' ...
hostname: Unknown host

This system could not send mail anymore, using sendmail, which reported
"stat=Data format error", so I started looking for the cause.

It took me a couple of hours before I was so desperate that I removed the
leading zeroes from the ip-addresses in /etc/hosts, and lo and behold:

# hostname -v -f
gethostname()=`ghp-medp4'
Resolving `ghp-medp4' ...
Result: h_name=`ghp-medp4.ghp.be'
Result: h_aliases=`ghp-medp4'
Result: h_addr_list=`192.168.1.52'
ghp-medp4.ghp.be

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

-- no debconf information

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


--- End Message ---
--- Begin Message ---
On Wed, Sep 07, 2005 at 08:18:01AM +0200, Gerard H. Pille wrote:
> Package: libc6
> Version: 2.3.5-6
> Severity: serious
> 
> 
> Hallo,
> 
> I have the (bad, it seems) habitude of putting leading zeroes in the
> IP-addresses in /etc/hosts.

  that habit is bad because in usual IP stacks, leading zeroes mean
octal notation:

  $ ping -c 1 127.0.0.010
  PING 127.0.0.010 (127.0.0.8) 56(84) bytes of data.

  $ ping -c 1 0127.1
  PING 0127.1 (87.0.0.1) 56(84) bytes of data.

  So _even_ if /etc/hosts would have supported it (which I'm not sure it
does, documentation is rather blank about it) it does not mean what you
think, and that should be avoided at any cost:

  $ ping 010.000.000.001
  PING 010.000.000.001 (8.0.0.1) 56(84) bytes of data.

  unlike the previous examples, you can see here what it could become if
you use the 10.0.0.0/8 private network ...

  I consider this is not a bug _and_ the intended behaviour. If you
still don't think like me, please reopen the bug as a wishlist item
using the following stanza:

----8<----
reopen 327024
severity 327024 wishlist
thanks
---->8----

To: control@bugs.debian.org
Cc: 327024@bugs.debian.org

thanks.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgpql4iSH8LUi.pgp
Description: PGP signature


--- End Message ---

Reply to: