Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-03-2012
Registered User
 
Join Date: Oct 2012
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Java Solaris - How to get IP Address from a hostname?

We are using Solaris as our database OS. Can you please help me to know how can i get the IP address of a solaris machine in my network from its hostname?
e.g. We have a remote database server with the hostname as xyz. Without connecting to the database OS, can i get the IP address of xyz OS from another solaris machine?
Sponsored Links
    #2  
Old 10-03-2012
bartus11's Avatar
Registered User
 
Join Date: Apr 2009
Posts: 3,146
Thanks: 3
Thanked 957 Times in 936 Posts
One of the ways:
Code:
ping -s xyz

The Following User Says Thank You to bartus11 For This Useful Post:
Anmol Sharma (10-03-2012)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Routing or Iptables connections by hostname or ip address mooofa UNIX for Dummies Questions & Answers 4 04-28-2010 12:41 PM
Convert IP address (within a line) to hostname scolazz Shell Programming and Scripting 3 03-02-2010 01:45 PM
Read Hostname and Return IP Address PrasannaKS Shell Programming and Scripting 1 11-15-2008 04:17 PM
IP address/hostname problem uLearner UNIX for Dummies Questions & Answers 1 03-17-2008 09:20 AM
Solaris - unknown hostname - how can I change hostname? XNOR UNIX for Dummies Questions & Answers 1 03-29-2007 10:52 PM



All times are GMT -4. The time now is 02:37 PM.