Skip to content

Commit

Permalink
[skip ci]
Browse files Browse the repository at this point in the history
adopted content from 6.3. Setting the FQDN of [RHCS 10cc] for doc convergence.
  • Loading branch information
ladycfu committed Feb 13, 2025
1 parent c79d242 commit 6f36bf9
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions docs/installation/others/FQDN_Configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,43 @@
In order to have a properly functioning PKI system,
each machine in the system must have a correct fully qualified domain name.

This page describes the process to verify and configure
the fully qualified domain name on each machine.
This page describes the process to configure the fully qualified domain name on each machine.

== Verifying FQDN ==

To verify the current FQDN, execute the following command:

----
$ python -c 'import socket; print(socket.getfqdn())'
# hostname
pki.example.com
----

== Configuring FQDN ==
If the host name is not what you expect it to be, run hostnamectl to set the hostname. For example,

To configure the FQDN, specify the FQDN in `/etc/hosts`, for example:
set the hostname of your pki machine as follows:

----
127.0.0.1 pki.example.com
::1 pki.example.com
# hostnamectl set-hostname pki.example.com
----

set the hostname of your DS machine as follows:

----
# hostnamectl set-hostname dir.example.com
----

Additionally, add both the CS and DS machines' IP addresses and new hostnames as entries in /etc/hosts of both machines:

----
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.1.111.111 pki.example.com
10.2.222.222 dir.example.com
----

Verify the FQDN again after the change:

----
# hostname
----

0 comments on commit 6f36bf9

Please sign in to comment.