Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Troubleshooting CentOS

You're reading from   Troubleshooting CentOS A practical guide to troubleshooting the CentOS 7 community-based enterprise server

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781785289828
Length 190 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Jonathan Hobson Jonathan Hobson
Author Profile Icon Jonathan Hobson
Jonathan Hobson
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Troubleshooting CentOS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Basics of Troubleshooting CentOS FREE CHAPTER 2. Troubleshooting Active Processes 3. Troubleshooting the Network Environment 4. Troubleshooting Package Management and System Upgrades 5. Troubleshooting Users, Directories, and Files 6. Troubleshooting Shared Resources 7. Troubleshooting Security Issues 8. Troubleshooting Database Services 9. Troubleshooting Web Services 10. Troubleshooting DNS Services Index

Changing the hostname and managing the FQDN


Changing the hostname of an authoritative or a recursive (caching) server may not necessarily be a DNS issue (per se), but, as a rule of thumb, the hostname of your system is inextricably linked to the DNS as a function of the overall system in question; for this reason, we will now review the procedure to change the hostname of the host system.

To review the current hostname, you can use the following syntax:

# hostnamectl status

However, you can choose to view the static, transient, or pretty name with one of the following commands:

# hostnamectl status --static
# hostnamectl status --transient
# hostnamectl status --pretty

Based on this, to change the hostname you should use the following command:

# hostnamectl set-hostname <new-host-name>

Alternatively, you can choose to update the static hostname with this:

# hostnamectl --static set-hostname <new-host-name>

Having completed this action, the hostname change will be applied to the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images