Moin,
> was ich schon lange immer wieser mal suche, so auch jetzt:
>
> Ein kleines Comandline-Tool, für gethostbyname.
getent(1M)
System Administration Commands getent(1M)
NAME
getent - get entries from administrative database
SYNOPSIS
getent database [key...]
DESCRIPTION
getent gets a list of entries from the administrative data-
base specified by database. The information generally comes
from one or more of the sources that are specified for the
database in /etc/nsswitch.conf.
(16147) thing:/# getent hosts lt-ob
192.109.102.103 lt-ob.sun-powered.de lt-ob
getent geht via name-service-switch.
Obs das fuer die major Linuxe gibt...keine ahnung.
Gruss
--
-- Olaf Bohlen --------------------- cell +49-172-4561817 --
-- Schuetzenstrasse 49 ---- mail <fir...@sun-powered.de> --
-- 14943 Luckenwalde ---- http http://www.sun-powered.de/ --
-- Germany ---------------------- irc firefox01 (IRC-Net) --
Olaf Bohlen wrote:
> getent database [key...]
Aha, das gefällt mir :-)
> Obs das fuer die major Linuxe gibt...keine ahnung.
Zumindest bei Mandrake 10.1 ist es dabei. Scheint zur glibc zu gehören
und stammt von 1999.
--
Schönen Gruß - Regards
Hartmut Goebel
| Hartmut Goebel | IT-Security -- effizient |
| h.go...@goebel-consult.de | www.goebel-consult.de |