How to set fqdn in Linux

Edit /etc/hostname and change the text to your hostname:


Edit /etc/hosts and edit like 2 to look like the following (under the one written localhsot). blog

Where is your FQDN and blog is your hostname

save and test your config by typing the following

This should output blog
hostname -f
This should output

You may also like...

Leave a Reply