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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content