0 votes
1 view
in AWS by (19.2k points)

I'm running a couple of standard Fedora instances on EC2. I feel the public hostnames of the instances assigned by Amazon are too weird and hard to remember. I'd like to change them to something short (like red/blue/green/etc).

Is there any drawback in doing this? And how do I set it up such that it persists after reboots?

1 Answer

0 votes
by (115k points)

Edit /etc/sysconfig/network as root.

Replace

HOSTNAME=localhost.localdomain

with

HOSTNAME=hostname.DOMAIN_NAME

Then, either reboot or run /etc/init.d/network restart The server then should report its name as an FQDN.

If you want to learn more, check out this AWS Certification Training Course by Intellipaat.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...