PortScan › Port guide › Port 53

Port 53 (DNS): Why Open Resolvers Become DDoS Amplifiers

TCP 53DNSNetwork infrastructureExposure risk: Medium

Port 53 is DNS. Normal on an authoritative server, but an open resolver anyone can query gets abused for DNS amplification DDoS. TCP vs UDP and how to check.

What is port 53?

DNS translates domain names into IP addresses. Most queries travel over UDP port 53; TCP port 53 is used for large responses and zone transfers (AXFR).

DNS servers come in two kinds: authoritative servers, which answer only for their own domains, and recursive resolvers, which look up answers on behalf of others. Only the first kind should be open to the internet.

When it is normally open

Risks if it is open

Open resolvers and amplification attacks

A server that recursively answers anyone's queries can be used as a DDoS amplifier: it receives small queries with a spoofed source address and fires large responses at the victim. The operator becomes a participant in the attack, and the server's own link can be saturated.

Zone transfers (AXFR) allowed

If TCP 53 allows zone transfers to anyone, every host name in the domain — including internal-only names — is handed over in one go.

Security checklist

How to check whether port 53 is open

DNS mainly uses UDP port 53. This scanner checks TCP only, so check the UDP side separately with dig or nslookup.

From outside (is it exposed to the internet?)

Whether your server or home router accepts port 53 from the internet can only be confirmed by connecting from outside. A check from inside the same network bypasses the router's firewall and gives a different answer.

PortScan opens a real TCP connection from the Cloudflare edge and reports Open, Closed or Filtered. Members can scan every port on their own IP for free and other targets free once a day.

Check port 53

On the server (what is listening?)

Windows (PowerShell):

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

Linux:

sudo ss -tlnp | grep ':53 '

If it listens on 0.0.0.0 or [::] it is open on every network; 127.0.0.1 means only that machine can connect. To test port 53 on a server from another computer, use Test-NetConnection server-address -Port 53 on Windows or nc -vz server-address 53 on Linux and macOS.

How to close or restrict port 53

The best fix is to turn the service off or make it listen only on 127.0.0.1 (see the checklist above). If you need the service but must keep it off the internet, use a firewall.

Windows Firewall

# Administrator PowerShell
New-NetFirewallRule -DisplayName "Block TCP 53" -Direction Inbound -Protocol TCP -LocalPort 53 -Action Block
# To allow a single IP instead (block rules take precedence, so use this instead of the rule above)
New-NetFirewallRule -DisplayName "Allow TCP 53 from office" -Direction Inbound -Protocol TCP -LocalPort 53 -RemoteAddress 203.0.113.10 -Action Allow

Linux (ufw)

sudo ufw deny 53/tcp
# Allow a single IP only
sudo ufw allow from 203.0.113.10 to any port 53 proto tcp

On a cloud server, also check port 53 in the security group (inbound rules), which is separate from the OS firewall. For services running in Docker, the rules Docker creates can bypass ufw, so binding the port to localhost with -p 127.0.0.1:53:53 is the reliable option.

Router

At home or in a small office, open the router's admin page and check whether port 53 is in the port forwarding list, whether DMZ is enabled, and whether any program opened ports by itself through UPnP. If any of the three applies, port 53 on your PC is directly visible from the internet.

How to read the scan result

The verdict can depend on where you connect from. Many ISPs (including most Korean ISPs) block some ports such as 135, 139 and 445 on their network, so the same server can look Filtered from inside that network and Closed from abroad.

FAQ

If PortScan shows port 53 as Closed, is DNS turned off?
No. This scanner checks TCP only. DNS queries mostly use UDP, so a server can still answer over UDP even with TCP 53 closed. To see whether it is an open resolver, run dig @server-IP example.com from outside.
853 DNS over TLS80 HTTP123 NTP

Last updated 2026-11-04 · Use this guide to check systems you manage. Scanning systems without permission may carry legal liability.