Free tech learning for everyone, from basics to pro

Port 53: DNS (Domain Name System)

What port 53 (UDP/TCP) does, the security risks of leaving it open, and how to secure and test it.

Port53
TransportUDP/TCP
ServiceDomain Name System (DNS)
EncryptedNo (DoT and DoH add encryption)

What is port 53?

DNS turns names like fmtechub.com into IP addresses. Normal lookups use UDP 53; TCP 53 is used for large answers and zone transfers.

Common uses

  • Every web visit, email and app connection starts with a DNS lookup
  • Active Directory relies on DNS to find domain controllers

Security risks

  • Open resolvers abused for DDoS amplification attacks
  • Zone transfers to anyone, revealing internal host names
  • DNS tunnelling used by malware to hide data theft
  • Cache poisoning and spoofed answers

How to secure port 53

  • Only allow recursive lookups for your own clients
  • Restrict zone transfers (AXFR) to your secondary servers
  • Force clients to use your approved resolvers and block other outbound DNS
  • Log and monitor DNS queries for strange patterns
  • Consider DNS over TLS (853) or DNS over HTTPS for privacy

How to check if port 53 is open

WhereCommand
Scan from another machinenmap -p 53 <host>
Windows (PowerShell)Test-NetConnection <host> -Port 53
Linux (what is listening)sudo ss -tulpn | grep :53
Windows (what is listening)netstat -ano | findstr :53

Only scan systems you own or have permission to test.

Related ports

Frequently asked questions

What is port 53 used for?

Port 53 (UDP/TCP) is used by Domain Name System (DNS). DNS turns names like fmtechub.com into IP addresses.

Is it safe to open port 53?

Only if the service needs to be reached and is configured securely. Only allow recursive lookups for your own clients.

How do I check if port 53 is open?

From another computer, run nmap -p 53 followed by the host address. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 53.

Learn more: TCP, UDP and ports explained and firewall basics.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown