Domain Name System. UDP 53 carries ordinary queries; TCP 53 is used for responses too large for UDP, zone transfers (AXFR/IXFR) and by clients that retry over TCP.
Domain Name System. UDP 53 carries ordinary queries; TCP 53 is used for responses too large for UDP, zone transfers (AXFR/IXFR) and by clients that retry over TCP.
Meant to face the internet. Authoritative servers must answer the world on both UDP and TCP 53. Recursive resolvers must not: an open resolver gets abused for DNS amplification DDoS. Restrict recursion to your own networks and restrict zone transfers to your secondaries.
sudo ss -tlnp 'sport = :53'sudo ss -ulnp 'sport = :53'sudo lsof -nP -i :53sudo netstat -tlnp | grep ':53 'netstat -ano | findstr :53Get-NetTCPConnection -LocalPort 53 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 53Test-NetConnection HOST -Port 53nc -vzu -w 5 HOST 53sudo ufw allow 53/tcpsudo iptables -A INPUT -p tcp --dport 53 -j ACCEPTsudo nft add rule inet filter input tcp dport 53 acceptNew-NetFirewallRule -DisplayName 'Allow TCP 53' -Direction Inbound -Protocol TCP -LocalPort 53 -Action Allowsudo ufw allow 53/udpsudo iptables -A INPUT -p udp --dport 53 -j ACCEPTsudo nft add rule inet filter input udp dport 53 acceptNew-NetFirewallRule -DisplayName 'Allow UDP 53' -Direction Inbound -Protocol UDP -LocalPort 53 -Action AllowAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.