socket.getfqdn doesn't return the configured FQDN of the host but the DNS reverse lookup of the host IP.
This can cause problems and headaches if the DNS is wrong, it would be better to rely on what is actually configured on the host, since it is supposed to be reporting on the host.
OS: Ubuntu 22.04
Python: 3.10.12
socket.getfqdn doesn't return the configured FQDN of the host but the DNS reverse lookup of the host IP.
This can cause problems and headaches if the DNS is wrong, it would be better to rely on what is actually configured on the host, since it is supposed to be reporting on the host.
OS: Ubuntu 22.04
Python: 3.10.12