# smartdns

smartdns is a local DNS server that queries several upstream servers (UDP, TCP, DoT, DoH, DoQ) and returns the fastest result. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/9326/smartdns

## Description

SmartDNS is a local DNS server that queries several upstream servers (UDP, TCP, DoT, DoH, DoQ) and returns the fastest result. It supports per-domain upstream groups, domain rules, IP sets and ip-alias (map CDN IP ranges such as Cloudflare's to preferred IPs). Put smartdns.conf in the config directory before starting. See https://pymumu.github.io/smartdns/en/ for configuration. Web UI (optional): add plugin smartdns_ui.so , smartdns-ui.ip http://0.0.0.0:6080 , smartdns-ui.user and smartdns-ui.password to smartdns.conf, then open port 6080. Set your own password and keep smartdns-ui.enable-terminal no unless you need a shell. Port 53: in bridge mode the host's port 53 must be free. If something else on the host already uses it (or you run another DNS container), switch Network Type to a custom network (br0 / macvlan) and give the container its own IP.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

75/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 1 day ago)
- Popular: 81 (11,491 GitHub stars)
- Easy to install: 20 (1 install platform, Docker image)
- Security check: 73 (no serious findings, CI, tests, OpenSSF Scorecard 4/10)

## Links

- Unraid: https://ca.unraid.net/apps/app_c888d65662626466
- GitHub: https://github.com/pymumu/smartdns
- Official website: https://pymumu.github.io/smartdns/

## Common questions

### Why won't the container start in bridge mode when something else uses port 53?

In bridge mode the host's port 53 must be free. If something else on the host already uses it or you run another DNS container, switch the network type (e.g., host mode).

### How can SmartDNS resolve local hostnames?

SmartDNS can cooperate with dnsmasq's DHCP server by reading its lease file to resolve local host names to IP addresses.

### Do I need to prepare a config file before first start?

Yes, put smartdns.conf in the config directory before starting the container.

---
Source: Our Local Host (https://ourlocalhost.com/app/9326/smartdns), the self-hosted and open-source app directory.
