Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

reading adjecent pc's name

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2005, 05:45 AM
Default reading adjecent pc's name



Hello,
How can i read adjecent pc's name provided i have its IP
address. can it be possible in an Internetwork that if a I got Linux
based Software Router then by looking into Routing table and receving
IP address of next Router from it, I will get name of that next Router
IP's machine or its domain Name??


kernel.lover
Reply With Quote
  #2  
Old 02-26-2005, 07:15 AM
Davide Bianchi
Guest
 
Posts: n/a
Default Re: reading adjecent pc's name

On 2005-02-26, kernel.lover <(E-Mail Removed)> wrote:
> How can i read adjecent pc's name provided i have its IP


host ip.of.the.pc will tell you the 'name' of the PC. If this is
what you want. Otherwise, explain,

Davide

--
The Weak Lusethropic Principle states: "As more idiot-proof software
becomes avalable, more idiots are able to use computers. Idiot-proof
software did not make or cause computer lusers; it simple allowed lusers
to use computers where they could not before." --Ben Cantrick
Reply With Quote
  #3  
Old 02-26-2005, 06:56 PM
David Efflandt
Guest
 
Posts: n/a
Default Re: reading adjecent pc's name

On 25 Feb 2005 21:45:26 -0800, kernel.lover <(E-Mail Removed)> wrote:
> Hello,
> How can i read adjecent pc's name provided i have its IP
> address. can it be possible in an Internetwork that if a I got Linux
> based Software Router then by looking into Routing table and receving
> IP address of next Router from it, I will get name of that next Router
> IP's machine or its domain Name??


In order to find the the name of an IP, you need something that maps that
IP to a name, for example, /etc/hosts, DNS or other method. But even if
the IP resolves to a name (which is not required), that name might have
nothing to do with hostname or machine name.

For example my Linux router has 3 interfaces, its pppoe resolves to an ISP
name, its two LAN interfaces (one wireless) resolve to private names
(private DNS). NONE of those IPs resolves to its hostname (which is one
of 3 no-ip.com names that point to its pppoe IP). So there is no way
anyone from the internet could discover my hostname unless they already
know it (hostname resolves to IP, but IP does not resolve to that name).
Reply With Quote
Reply

Tags
adjecent, reading

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:04 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.