Package: ifupdown Version: 0.6.8ubuntu29.2 Severity: normal I opened a ubuntu bug against ifupdown 8 months ago, and supplied a fix. Despite the issue turning up in questions, it has not been passed upstream to the debian maintainers of the package. Therefore, I am trying to do it myself.
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/604283 Briefly: when http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=316099 was fixed, it changed the assignment of the hostname in /etc/hosts to the ip address 127.0.1.1. However, this ip address is never assigned to a local interface. Any server process that tries to listen on all interfaces will not know it should listen on 127.0.1.1. Any client that tries to connect to a local server using the hostname will timeout (although "localhost" will work). My solution is to make ifupdown.nw create a virtual interface lo:0 with the address 127.0.1.1 immediately after creating lo with the address 127.0.0.1. (and take it down before lo). My suggested patch was generated against the latest debian sid source for ifupdown-0.6.10. --- original//ifupdown.nw 2011-03-05 20:01:09.000000000 +0000 +++ briansPatch//ifupdown.nw 2011-03-05 20:02:29.000000000 +0000 @@ -3887,11 +3887,13 @@ This method may be used to define the IPv4 loopback interface. up - ifconfig %iface% 127.0.0.1 up + ifconfig %iface% 127.0.0.1 up + ifconfig %iface%:0 127.0.0.1 up route add -net 127.0.0.0 if ( mylinuxver() < mylinux(2,1,100) ) down - ifconfig %iface% down + ifconfig %iface%:0 down + ifconfig %iface% down @ <<inet methods>>= -- System Information: Debian Release: squeeze/sid APT prefers lucid-updates APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid') Architecture: i386 (i686) Kernel: Linux 2.6.32-29-generic (SMP w/2 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages ifupdown depends on: ii debconf [debconf-2.0] 1.5.28ubuntu4 Debian configuration management sy ii libc6 2.11.1-0ubuntu7.8 Embedded GNU C Library: Shared lib ii lsb-base 4.0-0ubuntu8 Linux Standard Base 4.0 init scrip ii net-tools 1.60-23ubuntu2 The NET-3 networking toolkit ii netbase 4.35ubuntu3 Basic TCP/IP networking system ii upstart [upstart-job] 0.6.5-8 event-based init daemon ifupdown recommends no packages. Versions of packages ifupdown suggests: ii dhcp3- 3.1.3-2ubuntu3 DHCP client ii iprout 20091226-1 networking and traffic control too ii ppp 2.4.5~git20081126t100229-0ubuntu3 Point-to-Point Protocol (PPP) - da -- debconf information excluded -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org