LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to view ports in use (https://www.linuxquestions.org/questions/linux-networking-3/how-to-view-ports-in-use-569197/)

veeruk101 07-13-2007 10:06 PM

How to view ports in use
 
I've got a DNS server running on port 53 (as indicated by a successful "telnet mynameserver 53" from a client machine), and I'd like to confirm through the netstat or another command that port 53 is being used, and by the "named" process.

My initial guess was to do a "netstat | grep 53", but that clearly isn't correct. Do you know what command I could use, if any exists, to accomplish this?

Thanks.

{BBI}Nexus{BBI} 07-13-2007 10:40 PM

Try this: netstat -atu Type: man netstat to get a list of switches.

prasanta 07-13-2007 11:14 PM

Quote:

like to confirm through the netstat or another command that port 53 is being used, and by the "named" process.

You can try with
Code:

nmap localhost
This will list all the open ports in your mcahine.

--
Prasanta


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