Fedora 19 – Setup Hostname & FQDN

Fedora 19 seems to have changed the way one can setup the hostname and fully qualified domain name. By making this change, it streamlined the setup similar to how things work in Debian derivatives, including Ubuntu. Here’s how it’s done…

# as 'root'
cat 'hostname' >> /etc/hostname
sed '1i127.0.1.1 hostname.domainname.com hostname' -i /etc/hosts
hostname -F /etc/hostname

# verification
hostname
hostname -f

In Amazon Linux AMI, one still has to set it up only in

/etc/sysconfig/network

.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s