On 24 November 2012 13:48, Keith Edmunds kae@midnighthax.com wrote:
On Sat, 24 Nov 2012 12:44:37 +0000, todorovic.s@googlemail.com said:
it probably makes far better reading to use netstat -tapn on the machine instead of nmap.
-a will show non-listening sockets, which is unnecessary in this case
Incorrect.
-a, --all Show both listening and non-listening sockets. With the --interfaces option, show interfaces that are not up.
-t will show tcp connections; however, DNS uses UDP (mostly), so not only is -t unnecessary, but the omission of -u means the command won't show what we need.
True, in this case I was wrong. But we Linux users should be double-checking the man pages and adjusting command line parameters when someone on the Internet gives us command or code snippets that we are not familiar with, right? ;-)
Regards, Srdjan