CyberHunter
Local dataset, no network
// Network services

Port 53: DNS

Name resolution. UDP for most queries, TCP for large answers and zone transfers.

Domain Name Systemdomain
53

How DNS works

Network services
your PCresolverexample.com ?203.0.113.7name → address your PCresolverexample.com ?203.0.113.7name → address

The computer asks a DNS server for the address behind a name, and gets an IP address back. It travels in clear text: anyone on the path can read it.

Transport
TCP · UDP
Exposure risk
4/10 moderate if reachable from the Internet
Encryption
Clear textreadable on the network
IANA status
Assigned1 registered service
Range
Well-known (0-1023)
01 Security

Is port 53 dangerous?

Common attacks and weaknesses

  • Open resolvers abused for DDoS amplification.
  • Zone transfers (AXFR) leaking the full list of hosts.
  • DNS tunneling used for command and control or data exfiltration.

How to secure it

  • Do not run open recursive resolvers on the Internet.
  • Restrict AXFR to secondary servers.
  • Log and monitor queries for tunneling patterns (long, random subdomains).
02 Registry

IANA registry entries for port 53

ServicePortTransportDescriptionReferenceUpdated
domain 53 TCP, UDP Domain Name Server - -

// source: IANA service name and port number registry

03 Check it

Which program uses port 53, and is it reachable?

Linux

sudo ss -ltnup 'sport = :53'      # process listening on 53
sudo lsof -nP -i :53

macOS

sudo lsof -nP -i :53

Windows (PowerShell)

Get-NetTCPConnection -LocalPort 53 -State Listen | Select LocalAddress, OwningProcess
Get-NetUDPEndpoint -LocalPort 53
netstat -ano | findstr :53

From another machine

nmap -p 53 -sV <host>
sudo nmap -sU -p 53 <host>
nc -zv <host> 53

Block it in the firewall

sudo ufw deny 53/tcp                                         # Linux (ufw)
New-NetFirewallRule -DisplayName "Block 53" -Direction Inbound -LocalPort 53 -Protocol TCP -Action Block  # Windows
04 FAQ
What is port 53 used for?

Name resolution. UDP for most queries, TCP for large answers and zone transfers.

Is port 53 TCP or UDP?

Port 53 is registered for TCP and UDP.

Is it safe to open port 53?

It is rated 4/10 (moderate) when exposed to the Internet. Open resolvers abused for DDoS amplification. Do not run open recursive resolvers on the Internet.

How do I check if port 53 is open?

On Linux run "ss -ltnup 'sport = :53'", on macOS "lsof -nP -i :53", and on Windows "netstat -ano | findstr :53" to see the local process. From another machine, "nmap -p 53 <host>" shows whether it is reachable.

05 Related

Latest vulnerability news

All news