How can I install getent on Snow Leopard?

I have several scripts which require the utility getent. In addition, I've read several handy tips which use getent. getent is a Networking utility which is widely available on Unix, *BSD and Linux-