LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-17-2004, 04:32 PM   #1
eliotstock
LQ Newbie
 
Registered: Feb 2003
Posts: 10

Rep: Reputation: 0
netstat foreign address abbreviated


A netstat on my machine gives a line such as this:

tcp 0 84120 10.1.0.3:http host81-153-40-244.:3282 ESTABLISHED

but the 'host81-153-40-244.' I know is only the first part of the address of that machine. How do I see the rest? man netstat is no help.

Cheers,

Eliot.
 
Old 10-17-2004, 04:42 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try using "-n" this will give you the numeric IP address. Then if you want the hostname just do a reverse lookup.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting number to locale's abbreviated month name tsilok Linux - Newbie 4 10-25-2005 05:18 PM
how to obtain someone's ip address through netstat dr_zayus69 Linux - Networking 5 08-13-2005 11:06 PM
netstat reporting wrong IP address? Donboy Linux - Networking 2 04-14-2005 12:44 AM
netstat, how to show what address are connected? trey85stang Slackware 2 12-30-2003 02:56 PM
getting last locale's abbreviated month name through bash scripting markus1982 Programming 2 05-10-2003 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration