getent passwd
root:x:0:0 ...
...
getent passwd root
root:x:0:0 ...
getent hosts
127.0.0.1 localhost
...
Supported databases: ahosts ahostsv4 ahostsv6 aliases ethers group gshadow hosts initgroups netgroup networks passwd protocols rpc services shadow