Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Clouds > AWS > AWS FAQs > How can I change the EC2 hostname?

How can I change the EC2 hostname?

Table of Contents
Background Information

Currently the hostname is in the form: "DomU-12-31-38-00-AA-11"
How can I change it?


Answer

You can change the hostname on the instance using the Linux hostname command (you can do this as part of a boot script):

hostname myhostname

However, this does not effect DNS in any way.  You need to also make changes to the hostname in DNS Made Easy if you want to be able to access that host from other computers.  This can be done by modifying or creating A-Records for the server.  The hostname command effects the "internal" hostname of that server only.

You must to post a comment.
Last modified
21:25, 16 May 2013

Tags

ec2

Classifications

This page has no classifications.

Announcements

None


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.