Public bug reported:

Binary package hint: network-manager

I develop several web sites on my laptop, and each one is a different
virtual host through Apache.  Until Lucid, I was able to alias these
hosts in /etc/hosts, like this

  127.0.0.1 localhost localhost.localdomain myhost1.localdomain
myhost2.localdomain myhost3.localdomain

Starting with Maverick, however, NetworkManager overwrites the 127.0.0.1
line every time it initiates a new network connection, so these aliases
are lost.  It is fair to argue that aliasing 127.0.0.1 isn't ideal, but
as far as I can find, NetworkManager doesn't offer any alternative for
aliasing the bound IP address.  For example, if I connect to WiFi, it
adds a line like

  192.168.0.101 snape

There seems to be no way to get it to do

  192.168.0.101 snape myhost1.localdomain myhost2.localdomain
myhost3.localdomain

NetworkManager should not overwrite the 127.0.0.1 line in /etc/hosts
until there is an alternative method available for aliasing on the local
machine, without setting up an entire local DNS server.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: network-manager 0.8.1+git.20100810t184654.ab580f4-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: fglrx wl
Architecture: amd64
CRDA: Error: [Errno 2] No such file or directory
Date: Wed Oct 13 08:22:07 2010
Gconf:
 
IfupdownConfig:
 auto lo
 iface lo inet loopback
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate amd64 
(20100928)
IpRoute:
 192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.198  metric 1 
 169.254.0.0/16 dev eth0  scope link  metric 1000 
 default via 192.168.0.1 dev eth0  proto static
Keyfiles: Error: [Errno 2] No such file or directory
ProcEnviron:
 PATH=(custom, user)
 LANG=en_CA.utf8
 SHELL=/bin/bash
RfKill:
 0: hp-wifi: Wireless LAN
        Soft blocked: no
        Hard blocked: no
SourcePackage: network-manager

** Affects: network-manager (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: alias amd64 apport-bug maverick ubuntu-une virtual-hosts

-- 
Aliases in /etc/hosts overwritten
https://bugs.launchpad.net/bugs/659872
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to