Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in AWS by (19.1k points)

I have several amazon ec2 instances running Linux AMIs based on Fedora and even though I set the hostname using the command:


whenever I have to reboot any of them this hostname gets reset to something ip***, how can I make my hostname stick and make it permanent??

1 Answer

0 votes
by (44.3k points)

Open this /etc/sysconfig/network:

  • There will be HOSTNAME attribute. Change there for a permanent change.

Related questions

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

28.4k questions

29.7k answers


94.2k users

Browse Categories