The configuration of krb requires some work done regarding the domain and host name.
First, decide on the host name of the machine running the krb server. Once determined, use the following command to set the hostname:
This sets the host name to krbsvr. You can choose any other host name, but this module will use this as the host name.
Next, you need to determine the name of the domain if one is not already pre-determined. Let’s assume the domain name is test.org. Note that this does not have to be a registered domain name, nor does it have to be recognized by a local DNS.
Next, we need to set up /etc/hosts so that the machine can translate host names and domain names to IP addresses without any additional help from a DNS server. Using our example here, we need to add one line to the file:
This line associates the host name krbsvr and the fully qualified domain name krbsvr.test.org with the IP address 192.168.64.77. This is why we don’t need to set up a DNS server to start to use domain names. The address 192.168.64.77 has to be the IP address of the server via one of its interfaces.
It is critical to make sure that the name set by hostname and the names in /etc/hosts match. Otherwise, we cannot configure krb.
Last, but not least, you should also know the FQDN (fully qualified domain name) of the system, use the following command to discover it: