remote linux machine hostname?

General discussion about Linux, Linux distribution, using Linux etc.
Post Reply
alitoday
Naik
Posts: 62
Joined: Fri Nov 05, 2004 3:01 pm

remote linux machine hostname?

Post by alitoday »

i want to find remote linux machine (RHEL4) hostname via its IP residing on my local local linux machine, how?
Ali
"Yes we can!"
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re: remote linux machine hostname?

Post by lambda »

alitoday wrote:i want to find remote linux machine (RHEL4) hostname via its IP residing on my local local linux machine, how?
how is its ip "residing" on your machine?
farhantoqeer
Major General
Posts: 917
Joined: Thu Jun 27, 2002 5:45 pm
Location: Karachi
Contact:

Post by farhantoqeer »

"nmap" could work for you
A: Yes
Q: Is top-posting bad?
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear alitoday,
Salam,

As farhantoqeer told you nmap will help you. as well as if you can do tracroute to the ip and host ip might be it will have any dns records.

Best Regards.
Farrukh Ahmed
nomankhn
Colonel
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Re: remote linux machine hostname?

Post by nomankhn »

alitoday wrote:i want to find remote linux machine (RHEL4) hostname via its IP residing on my local local linux machine, how?

Dear alitoday,

local machine ip=127.0.0.1
whats your eth0 ip
whats your remote eth0 ip address.
Dns working there or not. if yes so at command prompt type this command

#nslookup 192.168.0.25

above command will give you the FQDN (Fully Qualify Domain Name).

Regards
Noman Liaquat Khanzada Rajput
Money is not everything
"Microsoft isn't evil, they just make really crappy operating systems." - Linus Torvalds
nomankhn
Colonel
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Re: remote linux machine hostname?

Post by nomankhn »

alitoday wrote:i want to find remote linux machine (RHEL4) hostname via its IP residing on my local local linux machine, how?

Dear alitoday,

local machine ip=127.0.0.1
whats your eth0 ip
whats your remote eth0 ip address.
Dns working there or not. if yes so at command prompt type this command

#nslookup 192.168.0.25

above command will give you the FQDN (Fully Qualify Domain Name).

Regards
Noman Liaquat Khanzada Rajput
Money is not everything
"Microsoft isn't evil, they just make really crappy operating systems." - Linus Torvalds
alitoday
Naik
Posts: 62
Joined: Fri Nov 05, 2004 3:01 pm

DNS

Post by alitoday »

DNS ? on my machine or one remote machine.
my machine ip: 192.168.0.44
host name ws14

and remote machine ip: 192.168.0.8
hostname: ?????

FQDN/Host name what ever.
Ali
"Yes we can!"
Post Reply