Why is myhostname added to /etc/nsswitch.conf when updating systemd
Issue
- We have to remove the
myhostnamefrom thensswitch.confto make sure the IPv4 address is returned instead of::1, fix taken from https://access.redhat.com/solutions/1287253. But after updating thesystemdRPM our change is undone. Thesystemdhas in it%posthardcode that it has to add themyhostnameto the hosts line innsswitch.conf
Environment
- Red Hat Enterprise Linux 7
- systemd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
