# DockRoute

DockRoute is an external DNS (Domain Name System) manager for plain Docker hosts that keeps DNS records and Cloudflare Tunnel routes aligned with container labels. It is open source and self-hosted, installable on TrueNAS and Unraid.

Canonical page: https://ourlocalhost.com/app/271/dockroute

## Description

DockRoute is an external DNS (Domain Name System) manager for plain Docker hosts that keeps DNS records and Cloudflare Tunnel routes aligned with container labels. It watches running containers, treats DockRoute labels as the source of truth, and reconciles them through a pluggable provider without altering records it cannot prove it manages. It is useful for homelabbers who want label-driven DNS and Tunnel routing for Docker containers. Use it to automate DNS and Cloudflare Tunnel setup while preserving safe ownership checks.

## Platform availability

Available on 2 of 9 platforms: Unraid, TrueNAS.

## Health score

60/100 (Good), based on 3 of 4 factors.
- Maintained: 88 (last commit 25 days ago)
- Popular: 27 (22 GitHub stars)
- Easy to install: 45 (2 install platforms, install notes, Docker image)

## Links

- TrueNAS: https://apps.truenas.com/catalog/dockroute/
- Unraid: https://ca.unraid.net/apps/dockroute-0eao49301twusr?q=DockRoute
- Official website: https://www.dockroute.dev
- GitHub: https://github.com/Dockroute/Dockroute

## Common questions

### How do I give DockRoute access to the Docker socket without manual user/group setup?

Mount /var/run/docker.sock read-only. The entrypoint detects the socket's group, grants it to the app user, and drops privileges before starting.

### How do I set the DNS record type and target for a container?

Use dockroute.type for A, AAAA, or CNAME and dockroute.target for the matching record value. If dockroute.target is omitted, DOCKROUTE_DEFAULT_TARGET is used.

### Will DockRoute touch DNS records it did not create, including records from another DockRoute instance?

No, it never alters records it cannot prove it manages. It treats everything it did not create as someone else's, including records made by another DockRoute instance.

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