Solved

using just hostname or FQDN in hostnamectl set-hostname.... what are the ramifications of each?

Posted on 2016-07-17
2
133 Views
Last Modified: 2016-08-03
using just hostname or FQDN in hostnamectl set-hostname.... what are the ramifications of each?
0
Comment
Question by:Xetroximyn
2 Comments
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 250 total points
ID: 41716114
Redhat recommends using the FQDN and that you only use hostnames that are assigned to you
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/ch-Configure_Host_Names.html
0
 
LVL 61

Assisted Solution

by:gheist
gheist earned 250 total points
ID: 41724190
I never heard of NM and systemd hostname changers.
In RHEL7 hostname is stored in /etc/hostname by installer and other programs dont replace it, and you can use posix hostname utility to change it on running system (all processes need to be restarted to catch up)
NM is not recommended on servers (not by redhat, just that sometimes NM boot without interfaces up)
You can use short or long hostname, but always put full and short version in /etc/hosts. If you fail to do so most programs using DNS will request hostname (short or long) and same appended with all possible 'search' domains in a row, taken from resolv.conf. (so another advice is to take search domains out from resolv.conf if not used)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Restore DNS Record 5 70
Access_log 17 99
Best way to virtualise a remote Linux server 2 50
CSVDE Novell Directory -a password option isn't working keeps prompting 2 21
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now