Getaddrinfo (localhost.localdomain): unknown name or service
The following error occurs after executing. / kdb5_util create-r EXAMPLE.COM-s
Error: getaddrinfo (localhost.localdomain): unknown name or service
Solution: check whether the host name in / etc/hosts is the same as the [realms] configuration in krb5.conf
The red line in / etc/hosts cannot be missing. From the error prompt, you can tell where the localhost.localdomain is.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
#:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 kerberos.example.com kerberos ldap.example.com