Solved

Linux, Ping and hostname

Posted on 2014-01-29
2
391 Views
Last Modified: 2014-01-29
If I ping an IP, it will return the IP

If I ping a hostname, it will return the IP

Is there a command to ping (or something like that) an IP, and have the hostname that corresponds to that IP be returned ?

Thanks
0
Comment
Question by:Los Angeles1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39818535
Yes, use

host <ipaddress>

or

host <hostname>

Omit < >  

:-)
0
 
LVL 23

Expert Comment

by:Patrick Bogers
ID: 39818540
Did you try dig (or dig -x)?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Intel fortran compiler (ifort) 5 81
Remove Resilio directory from Netgear ReadyNAS 212 via SSH. 2 88
can i read my emails on lamp ftp 4 70
Logrotate Every Saturday 5 43
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question