Check port used in linux

If you want to see which process is using which port (in this case, port 53), you can do it with the following command:

# netstat -tulpn| grep :53

This gives the following output:

tcp        0      0 :::53                       :::*                        LISTEN      1234/named

As you can see, dns (named) is using port 53 on PID 1234.
You can also do it with other ports by replacing the number (53) by another port.
  • 203 Users Found This Useful
Was this answer helpful?

Related Articles

Block IP from your server via iptables

You can block an IP ( from your server with the following command: # iptables -I...

Mass change in file

If you have switched to a new service provider and all DNS records need to be adjusted to the new...

How to import and export a mysql database via ssh

A mysql database can be easily imported and exported via SSH:1) You can export a MYSQL database...

Enable DMA on disk - against slow disk speed

We had a server performing pretty poorly and we went to investigate.It seemed the disk speed was...

How do I rename a database in phpMyAdmin?

You can rename a database easily via phpMyAdmin.We'll show you how it's done:Step 1. Login to...