getent(1) General Commands Manual getent(1) getent - getent [option ...] database key ... getent /etc/nsswitch.conf. key . key ( ). database GNU C : ahosts key sethostent(3) gethostent(3) endhostent(3) . hosts(5). key key getaddrinfo(3) AF_UNSPEC . ahostsv4 ahosts AF_INET. ahostsv6 ahosts AF_INET6. getaddrinfo(3) AI_V4MAPPED. aliases key setaliasent(3) getaliasent(3) endaliasent(3) . key key getaliasbyname(3) . ethers key key ether_aton(3) ether_hostton(3) . ethers key. key setgrent(3) getgrent(3) endgrent(3) . key key getgrgid(3) key getgrnam(3) . gshadow key setsgent(3) getsgent(3) endsgent(3) gshadow. key key getsgnam(3) . hosts key sethostent(3) gethostent(3) endhostent(3) . key key gethostbyaddr(3) gethostbyname2(3) inet_pton(3) key IPv6 IPv4 . initgroups key key getgrouplist(3) . initgroups key. netgroup key key setnetgrent(3) getnetgrent(3) (hostname username domainname). keys hostname username domainname innetgr(3). netgroup keys. networks key setnetent(3) getnetent(3) endnetent(3) . key key getnetbyaddr(3) key getnetbyname(3) . passwd key setpwent(3) getpwent(3) endpwent(3) . key key getpwuid(3) key getpwnam(3) . protocols key setprotoent(3) getprotoent(3) endprotoent(3) . key key getprotobynumber(3) key getprotobyname(3) . rpc key setrpcent(3) getrpcent(3) endrpcent(3) rpc. key key getrpcbynumber(3) key getrpcbyname(3) . key setservent(3) getservent(3) endservent(3) . key key getservbynumber(3) key getservbyname(3) . shadow key setspent(3) getspent(3) endspent(3) . key key getspnam(3) . --service -s . ( glibc 2.2.5.) --service _: -s _: . . ( glibc 2.4.) --no-idn -i IDN ahosts/getaddrinfo(3) ( glibc-2.13.) --help -? . --usage . --version -V getent. getent: 0 . 1 database . 2 key database. 3 database. nsswitch.conf(5) 3 . . : . 6.18 8 2026 getent(1)