stason.org logo lotus


previous page: 030.  I don't like having to type the full host name when using telnet. How can I resolve this problem?page up: Brief Linux FAQnext page: 032.  How can I have the "useradd" or "adduser" command automatically place some default files in a user's directory when that user is added to the system?

031. I am logged into a host. I would like to find out its IP address and a few other ones. How can I do this?

 Books
 TULARC
















Description

This article is from the the Brief Linux FAQ (BLFAQ) Maintained by Neil Zanella nzanella@ganymede.cs.mun.ca

031. I am logged into a host. I would like to find out its IP address and a few other ones. How can I do this?

You could use the hosts command as follows:

ganymede $ host ganymede.cs.mun.ca
ganymede.cs.mun.ca has address 134.153.39.1
ganymede.cs.mun.ca mail is handled (pri=5) by garfield.cs.mun.ca
ganymede $

The programs nslookup and /sbin/ifconfig can also be used for this purpose.

 

Continue to:


Share and Enjoy

Bookmark this story so others can enjoy it:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

linux, os, faq







TOP
previous page: 030.  I don't like having to type the full host name when using telnet. How can I resolve this problem?page up: Brief Linux FAQnext page: 032.  How can I have the "useradd" or "adduser" command automatically place some default files in a user's directory when that user is added to the system?