Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

to find ip address

Posted on 2014-02-25
Last Modified: 2014-03-04
How will we find the ip address for this machine


This is sunsolaris
Question by:thomasliju
LVL 19

Expert Comment

ID: 39885835
try to use ping command.
ping nyspcor01g
if nyspcor01g is a hostname you should get back recolved IP
LVL 76

Accepted Solution

slightwv (䄆 Netminder) earned 250 total points
ID: 39885836
ifconfig -a
LVL 40

Assisted Solution

omarfarid earned 250 total points
ID: 39885849
you may run the command

ifconfig -a

which will show you the network interfaces and their IPs


you could run

grep `hostname` /etc/hosts


nslookup `hostname`
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.


Expert Comment

by:Shahnawaz Ahmed
ID: 39885868
Dear thomasliju,

You will find by the below 2 commands, give a try now

ifconfig -a  

cat /etc/hosts | grep <server_name>
LVL 74

Expert Comment

ID: 39885877
Since the question was originally posted in the Oracle Database topic area, I'll assume you want an Oracle solution as well.

use the UTL_INADDR package

select UTL_INADDR.get_host_address('nyspcor01g') from dual;

Note, in 11g or higher databases you'll need an ACL that allows the RESOLVE privilege

Author Comment

ID: 39886322
This is good for any servers..
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39886328

Can you explain why you accepted the post you did? ifconfig and /etc/hosts had both been posted previously.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question