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