Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Linux-Tool für 'resolve'?

0 views
Skip to first unread message

Olaf Bohlen

unread,
Jan 18, 2005, 3:52:16 PM1/18/05
to
Hartmut Goebel <h.go...@goebel-consult.de> writes:

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) --

Hartmut Goebel

unread,
Jan 18, 2005, 4:02:32 PM1/18/05
to
Mahlzeit,

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 |

0 new messages