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

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`
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.


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 77

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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

726 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