LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-25-2010, 02:37 PM   #1
jone kim
Member
 
Registered: Apr 2010
Posts: 185

Rep: Reputation: 16
Cool looking for host name


What is the command to show the host name of the ip address?
Suppose, I've an ip address like 209.191.122.70, now I want to know its host name.What is the command for that?
 
Old 05-25-2010, 02:47 PM   #2
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
dig/nslookup/ping
 
Old 05-26-2010, 06:37 AM   #3
jone kim
Member
 
Registered: Apr 2010
Posts: 185

Original Poster
Rep: Reputation: 16
Unhappy

hey the command is not working:
"dig/nslookup/ping" says no such file or directory.
 
Old 05-26-2010, 06:47 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,568

Rep: Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865
dig, nslookup and ping are three separate commands.

Last edited by michaelk; 05-26-2010 at 06:50 AM.
 
Old 05-26-2010, 07:14 AM   #5
matpe
LQ Newbie
 
Registered: May 2010
Location: Linköping, Sweden
Distribution: Gentoo
Posts: 13

Rep: Reputation: 2
Quote:
Originally Posted by jone kim View Post
What is the command to show the host name of the ip address?
Suppose, I've an ip address like 209.191.122.70, now I want to know its host name.What is the command for that?
You almost answered the question yourself. The command is "host".
Code:
% host 209.191.122.70
70.122.191.209.in-addr.arpa domain name pointer ir1.fp.vip.mud.yahoo.com.
%
You can also use the "dig -x 209.191.122.70" command to get some more information, or "whois 209.191.122.70". All these commands are located in various packages depending on you Linux distribution.
 
1 members found this post helpful.
Old 05-26-2010, 07:18 AM   #6
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
Quote:
Originally Posted by michaelk View Post
dig, nslookup and ping are three separate commands.
Then it was necessary to specify that? ROTFL
 
Old 05-26-2010, 07:22 AM   #7
LouRobytes
Member
 
Registered: Mar 2010
Location: Nova Scotia, Canada
Distribution: Ubuntu & Fedora
Posts: 189

Rep: Reputation: 44
Quote:
Then it was necessary to specify that?
Execute each command separately, one at a time.

Cheers, Lou
 
Old 05-26-2010, 08:32 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,568

Rep: Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865
Quote:
Then it was necessary to specify that?
IMHO yes, for those members with little experience one might think your post was a single command. linux commands can be quite cryptic so providing clear explanations and examples will help reduce confusion.

As the saying goes:
I know that you believe you understand what you think I said, but I’m not sure you realize that what you heard is not what I meant.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind9 ,host does reslove a dns name but ping says unknown host Byenary Linux - Networking 10 01-12-2011 01:33 AM
try install host ; bind9-host uninstalled , how to undo sudo apt-get install host? shojaru Linux - Newbie 0 06-11-2009 12:45 AM
Required to achieve host to host communication via USB file transfer cable may1284 Linux - General 1 03-14-2007 04:02 PM
host-to-host USB cable: how to make it work under debian?? stefan_578 Linux - Hardware 18 12-20-2006 02:09 PM
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration