[systemd-devel] getent hosts <machine>
Johannes Ernst
johannes.ernst at gmail.com
Mon Jun 29 10:32:34 PDT 2015
I was hoping that
getent hosts <containername>
would work, just like
getent hosts <hostname>
where <hostname> can be anything else in the hosts: field in nsswitch.conf. But no such luck.
The <containername> does get resolved correctly in other cases, e.g. when pinging it.
Not knowing how getent actually works, I don’t know why that is, but I figured I mention it.
Cheers,
Johannes.
More information about the systemd-devel
mailing list