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

Bug#327024: is dead, long live, or "hostname: Unknown host"

Package: libc6
Version: 2.3.5-6
Severity: serious


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

eg. localhost.localdomain localhost 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
# hostname -v -f
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
Resolving `ghp-medp4' ...
Result: h_name=`ghp-medp4.ghp.be'
Result: h_aliases=`ghp-medp4'
Result: h_addr_list=`'

-- 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 

Reply to: