On Wed, 11 Dec 2002, Christoph Bugel wrote:

> On 2002-12-11, mail Admin wrote:
> > Hi
> > how can i konw the computer name that take my IP ADDRESS
>
> suppose that your IP address is 10.20.30.40, try:
>
> host 10.20.30.40
>
> or (if you use YP):
>
> ypcat hosts | grep 10.20.30.40

For both YP, LDAP and winbind (and your standard /etc/hosts, of course):

  getent hosts | grep 10.20.30.40

(great to have nsswitch)

'arp' (on the local LAN) and ping can also help to determain which
actually thinks it "holds" the IP address.

-- 
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to