Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Red Hat Enterprise Linux 8 Administration

You're reading from   Red Hat Enterprise Linux 8 Administration Master Linux administration skills and prepare for the RHCSA certification exam

Arrow left icon
Product type Paperback
Published in Nov 2021
Publisher Packt
ISBN-13 9781800569829
Length 534 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (3):
Arrow left icon
Scott McCarty Scott McCarty
Author Profile Icon Scott McCarty
Scott McCarty
Pablo Iranzo Gómez Pablo Iranzo Gómez
Author Profile Icon Pablo Iranzo Gómez
Pablo Iranzo Gómez
Miguel Pérez Colino Miguel Pérez Colino
Author Profile Icon Miguel Pérez Colino
Miguel Pérez Colino
Arrow right icon
View More author details
Toc

Table of Contents (25) Chapters Close

Preface 1. Section 1: Systems Administration – Software, User, Network, and Services Management
2. Chapter 1: Installing RHEL8 FREE CHAPTER 3. Chapter 2: RHEL8 Advanced Installation Options 4. Chapter 3: Basic Commands and Simple Shell Scripts 5. Chapter 4: Tools for Regular Operations 6. Chapter 5: Securing Systems with Users, Groups, and Permissions 7. Chapter 6: Enabling Network Connectivity 8. Chapter 7: Adding, Patching, and Managing Software 9. Section 2: Security with SSH, SELinux, a Firewall, and System Permissions
10. Chapter 8: Administering Systems Remotely 11. Chapter 9: Securing Network Connectivity with firewalld 12. Chapter 10: Keeping Your System Hardened with SELinux 13. Chapter 11:System Security Profiles with OpenSCAP 14. Section 3: Resource Administration – Storage, Boot Process, Tuning, and Containers
15. Chapter 12: Managing Local Storage and Filesystems 16. Chapter 13: Flexible Storage Management with LVM 17. Chapter 14: Advanced Storage Management with Stratis and VDO 18. Chapter 15: Understanding the Boot Process 19. Chapter 16: Kernel Tuning and Managing Performance Profiles with tuned 20. Chapter 17: Managing Containers with Podman, Buildah, and Skopeo 21. Section 4: Practical Exercises
22. Chapter 18: Practice Exercises – 1 23. Chapter 19: Practice Exercise – 2 24. Other Books You May Enjoy

Configuring hostname and hostname resolutions (DNS)

Remembering IP addresses, whether they are IPv4 or IPv6 addresses, can become a nightmare. To make things easier, a more human approach was used for the hostnames and the DNS, in that we can translate those easier-to-remember names into the IP addresses that systems use for connecting.

Hostnames are the names we assign to a host to have them identified, but when they're used in addition to a DNS server, we must have other hosts that can resolve them into IP addresses they can connect to.

We can use the hostname command to see or to temporarily modify the current hostname, as shown in the following screenshot:

Figure 6.12 – Querying and changing the hostname for our host

Bear in mind that this change is only temporary; as long as we restart the server, it will use the configured one.

To define a new configured hostname, we will use the hostnamectl set-hostname command, as shown in the following...

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 €18.99/month. Cancel anytime