ec2-set-hostname should not put the public hostname in /etc/hosts
Bug #352745 reported by
John Hampton
This bug report is a duplicate of:
Bug #407861: ec2-init: ec2-set-hostname should be eliminated, trust DHCP.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on EC2 |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
ec2-set-hostname adds the ec2 public hostname to /etc/hosts resolving to 127.0.1.1. The public hostname can be changed at any time during the lifetime of the instance (associating/
Related branches
To post a comment you must log in.
This makes sense to me, too.
Note that another side effect of the current approach is that "hostname --fqdn" returns the initial external hostname (which, as John points out, may not stay accurate depending on external factors).