Home » Infrastructure » Unix » IP address
IP address [message #98374] Fri, 27 August 2004 10:04 Go to next message
chetna
Messages: 21
Registered: July 2004
Junior Member
is there a command on unix to know the IP address of the current machine ?

thanks
Re: IP address [message #98375 is a reply to message #98374] Fri, 27 August 2004 11:15 Go to previous messageGo to next message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
Try something like this:

>nslookup `uname -n`
Server: my-dns.abc.com
Address: 111.111.1.11

Name: my-server.abc.com
Address: 111.123.123.23
Re: IP address [message #98411 is a reply to message #98374] Mon, 20 September 2004 07:30 Go to previous messageGo to next message
gopal krishna
Messages: 5
Registered: September 2004
Junior Member
Hi,

Yes, we have one command which gives IP address for your server. Type getip with server name
$> getip server name

Regards
Gopal.
Re: IP address [message #98421 is a reply to message #98374] Mon, 27 September 2004 12:25 Go to previous message
Pete Tian
Messages: 1
Registered: September 2004
Junior Member
$cat /etc/hosts

find the line containing your machine name, then you'll see the IP address is in front of it.
Previous Topic: HELP ME!Oracle9i Installation on AIX5.2
Next Topic: Core dump (Please reply ASAP)
Goto Forum:
  


Current Time: Fri Mar 29 04:21:37 CDT 2024