Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Getaddrinfo (localhost.localdomain): unknown name or service

Shulou Source: shulou.com Published: 2022-06-01 01:47:06 10月03日 Update

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

Tags: Name error service same host red prompt check configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Docker Redmi Shulou Technology Microsoft