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 FAQ
  
next 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?




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:















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 FAQ
  
next 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?