Last active
December 16, 2015 21:09
-
-
Save yourdesigncoza/5497807 to your computer and use it in GitHub Desktop.
A fully qualified domain name (FQDN), sometimes also referred as an absolute domain name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A fully qualified domain name (FQDN), sometimes also referred as an absolute domain name | |
# IMPORTANT : add your own data or parameters, I make use of double segments [[ your variable ]]. eg. ssh root@[[ 96.172.44.11 ]] should be replaced with ssh [email protected] where "888.88.88.88" is your value, variable etc. I have a habit of using ":::" to indicate line ending and end of paragraph, crazy I know but be warned its just how I write ::: All notes are for my own use & should you use any it's at your own risk, it's NOT a Tutorial ::: | |
# resources : | |
# http://serverfault.com/questions/367492/how-is-the-fqdn-determined | |
# http://ubuntuforums.org/showthread.php?t=1189965 | |
# Edit The Hosts file | |
sudo nano /etc/hosts | |
# Enter add the followin entry where - hostname - is your server name eg. root@hostname | |
127.0.0.1 [[ hostname ]].example.com [[ hostname ]] localhost.localdomain localhost | |
# Then you will get the following command results: | |
## hostname | |
[[ hostname ]] | |
## uname -n | |
[[ hostname ]] | |
## hostname -f | |
[[ hostname ]].example.com | |
## hostname -a | |
[[ hostname ]] localhost.localdomain localhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment