overwriting /etc/hosts aliases on connect

Bug #663397 reported by Joe Barnett
This bug report is a duplicate of:  Bug #659872: Aliases in /etc/hosts overwritten. Edit Remove
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: network-manager

I have a number of aliases to 127.0.0.1 set up in my /etc/hosts files to help with development needs.

As of maverick, these aliases keep disappearing from the /etc/hosts file, being replaced by:

127.0.0.1 localhost.localdomain localhost

in addition to the machine hostname being bound to 127.0.1.1 and the dhcp supplied IP address.

is there:
a) a way to keep these aliases from getting overridden
b) another place I should be specifying them?

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
Architecture: amd64
CRDA: Error: [Errno 2] No such file or directory
Date: Tue Oct 19 10:17:18 2010
IfupdownConfig:
 auto lo
 iface lo inet loopback
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Release Candidate amd64 (20100419.1)
IpRoute:
 10.0.4.0/24 dev wlan0 proto kernel scope link src 10.0.4.240 metric 2
 10.0.1.0/24 dev eth0 proto kernel scope link src 10.0.1.179 metric 1
 169.254.0.0/16 dev wlan0 scope link metric 1000
 default via 10.0.1.1 dev eth0 proto static
Keyfiles: Error: [Errno 2] No such file or directory
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: network-manager
WifiSyslog:

Revision history for this message
Joe Barnett (thejoe) wrote :
Revision history for this message
Brian Fuller (slink3r) wrote :

Could you state the steps you took to reproduce this?

Changed in network-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

This bug is confirmed, and a duplicate of bug 659872. Marking it as such.

As a temporary workaround, you can set aliases with 127.1.x.y IP addresses, those will still point back to the local machine and won't be overwritten by NetworkManager.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.