Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k 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 (119k 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.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories

...