This article is from the the Brief Linux FAQ (BLFAQ) Maintained by Neil Zanella nzanella@ganymede.cs.mun.ca
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: