Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2016-07-17
2
Medium Priority
?
269 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 84

Accepted Solution

by:
David Johnson, CD, MVP earned 1000 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 62

Assisted Solution

by:gheist
gheist earned 1000 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

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Question has a verified solution.

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

I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
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 how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month20 days, 16 hours left to enroll

810 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