Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.