← Back to all services
Dns

Unbound DNS Resolver Port & Configuration

unbound systemctl: unbound

Validating, recursive, caching DNS resolver. Lightweight and secure.

🔌 Default Ports

53
tcp
DNS
53
udp
DNS

📦 Installation Command

apt install unbound unbound-anchor

⚙️ Configuration Files

  • /etc/unbound/unbound.conf
  • /etc/unbound/unbound.conf.d/

📂 Default Directories

  • config: /etc/unbound
  • data: /var/lib/unbound
  • logs: /var/log/unbound.log
  • root_hints: /var/lib/unbound/root.hints

🔐 Default Credentials

Username:N/A
Password:N/A
💡 Remote control uses unbound-control with certificates

📌 Dependencies

dns-root-data

⚠️ Conflicts

bind9dnsmasqsystemd-resolved Port: bind9Port: dnsmasqPort: systemd-resolved

✅ Works With

pi-holeadguard

🛡️ Security Notes

Enable DNSSEC validation, use access-control, enable DoT/DoH for privacy

❓ Frequently Asked Questions

What port does Unbound use?
Unbound uses port 53 for DNS queries by default.
Unbound vs BIND9?
Unbound is focused on recursive resolution and security. BIND9 can also serve authoritative DNS.
Where is Unbound config?
Config at /etc/unbound/unbound.conf with includes in /etc/unbound/unbound.conf.d/.