general: check that the hostname can be looked up from /etc/hosts
Add two tests to check that NetworkManager can pick up the system hostname by looking at the entries in /etc/hosts.
https://issues.redhat.com/browse/RHEL-33435 NetworkManager!1974 (merged)