Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Sorry, if my question is nooby, but i don't understand some output lsof command.

I try to run lsof -i on my home machine(debian linux) and what i obtain (showed one line; my browser chromium was running)

# lsof -i
COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
chromium- 2379   brenta   70u  IPv4  45006      0t0  TCP brenta.local:44023->stackoverflow.com:www (ESTABLISHED)

the man page explains about column NAME:

the local and remote Internet addresses of a network file;
the local host name or IP number is followed by a colon (':'), the port,
``->'', and the two-part remote address.

I try to run this comman on the other machine (linux mint):

COMMAND    PID     USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
firefox   2778   brenta  59u   IPv4 68476917      0t0  TCP NOT_MY_HOST:39812->stackoverflow.com:http (ESTABLISHED)

Why column NAME contains not my host, but the other machine in local network?

share|improve this question
    
perhaps the name couldn't be resolved, what says lsof -n -i? –  bersch Feb 27 at 22:32
    
really! nslookup myip show me name of other host machine, that means my ip set wrong name. That explains output lsof. Thank you! –  Allur Feb 28 at 12:05
    
you're welcome. –  bersch Feb 28 at 16:18
add comment

1 Answer 1

up vote 0 down vote accepted

The right answer given by user bersch in comment: "the name couldn't be resolved"

share|improve this answer
    
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. –  slm Feb 28 at 13:07
    
Why it does not provide an answer? The question was "Why column NAME contains not my host, but the other machine in local network?" The answer is "host name is setted wrong on local machine" –  Allur Feb 28 at 13:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.