Solaris - How to get IP Address from a hostname? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


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 !!

Solaris - How to get IP Address from a hostname?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-03-2012
Anmol Sharma Anmol Sharma is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 5 October 2012, 2:59 AM EDT
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
bartus11 bartus11 is online now Forum Staff  
Moderator
 
Join Date: Apr 2009
Last Activity: 30 October 2014, 6:49 PM EDT
Posts: 3,712
Thanks: 7
Thanked 1,143 Times in 1,114 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 06:54 PM.