Getting Started
Get up and running with LocalDNS.wtf in minutes. Transform localhost ports into beautiful .local domains.
Getting Started with LocalDNS.wtf
LocalDNS.wtf is a local development DNS + reverse proxy + process manager for macOS/Linux. It maps custom .local domains to local ports, manages service lifecycles, and provides a web dashboard.
How It Works
- A DNS server listens on
127.0.0.1:5354for all.localqueries - macOS resolver at
/etc/resolver/localpoints.locallookups to that DNS server - An HTTP reverse proxy on port 80 routes requests by Host header to the correct local port
- A process manager starts/stops/monitors the actual app processes
- A REST API on port 1111 lets the CLI, dashboard, and external tools control everything
- The web dashboard at
http://dns.localprovides a visual management UI
Quick Start
1. Install Dependencies
pnpm install
pnpm build2. Start the Daemon
# Option A: Manual start (for development)
localdns start
# Option B: Install as macOS service (auto-start on boot)
localdns install3. Add Your First Domain
localdns add myapp.local --cmd "npm start" --port 3000
localdns start myapp.local4. Browse
Open http://myapp.local in your browser.
Architecture
Browser → .local DNS (port 5354) → 127.0.0.1
Browser → HTTP Proxy (port 80) → routes by Host → localhost:{port}
CLI → REST API (port 1111) → Registry + Process Manager
Dashboard (dns.local) → REST API (port 1111)Storage
| Path | Purpose |
|---|---|
~/.localdns/ | Config directory |
~/.localdns/registry.json | All domain configs |
~/.localdns/daemon.pid | PID file |
~/.localdns/daemon.log | Logs |
~/.localdns/certs/ | SSL certificates |
Port Ranges
| Port | Service |
|---|---|
| 80 | HTTP reverse proxy |
| 443/8443 | HTTPS reverse proxy |
| 1111 | LocalDNS API server |
| 5354 | DNS server |
| 7100-7899 | Auto-assigned domain ports |
Next Steps
- Setup Guide - Detailed installation and configuration
- CLI Reference - All available commands
- Services - Managing local services
- Troubleshooting - Common issues and fixes