Fixed hostname in EC2/DHCP environment

Solution Verified - Updated -

Issue

  • How to set a fixed hostname on a server running in EC2 which is based on RH7.0/7.1.
  • The hostname is changes back to the one assigned to the VM by the DHCP server after reboot.

Environment

  • Amazon EC2
  • Red Hat Enterrise Linux 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.