[CALUG] /etc/hosts not used?
Jeremy Portzer
jeremyp at pobox.com
Sun Mar 19 14:54:39 CST 2006
On Sun, 19 Mar 2006, Chris Edillon wrote:
> the getent command will do what you want, it's a program which
> does various get* routine lookups:
>
> getent hosts foo.bar.com
> getent passwd username
> getent group groupname
> etc.
Awesome Chris. That's exactly what we're all looking for.
getent is provided by the glibc package on my system, so that indicates
this ought to be a widespread command available on almost every system,
which fits the bill for a portable shell script.
Thanks.
Jeremy Portzer
--
/---------------------------------------------------------------------\
| Jeremy Portzer jeremyp at pobox.com trilug.org/~jeremy |
| GPG Fingerprint: 712D 77C7 AB2D 2130 989F E135 6F9F F7BC CC1A 7B92 |
\---------------------------------------------------------------------/
More information about the lug
mailing list