Use EC2 DHCP hostname and domain name instead of "ubuntu."
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on EC2 |
Fix Released
|
Undecided
|
Unassigned | ||
ec2-init (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
AMI id: ami-814aaee8, ami-a84aaec1
The 32- and 64-bit official Ubuntu beta AMIs currently have a hardcoded hostname of "ubuntu" with no domain name, so "hostname -f" returns "ubuntu."
As one beta tester has reported (not sure if he wants his name posted here) this causes an error when postfix is installed:
newaliases: fatal: bad string length 0 < 1: mydomain =
In addition, the default name of "ubuntu" is not resolvable by other hosts.
The common standard with existing EC2 AMIs is for the hostname and domain to default to the internal DNS name as assigned by EC2 (DHCP).
Another option would be to obtain the external DNS name and set that as the hostname on boot. This would let the hostname be resolvable from outside of EC2 which might be useful when some software is configured. The external DNS name can be obtained here on an EC2 instance:
http://
This bug was fixed in the package ec2-init - 0.2
---------------
ec2-init (0.2) jaunty; urgency=low
* debian/init: Run fetch-credentials before anything else. hostname. py: Queries ec2 metdada for public-hostname
(LP: #308533)
* Add ec2-set-
and then sets it (LP: #316201)
-- Chuck Short <email address hidden> Tue, 13 Jan 2009 15:20:21 -0500