Troubleshooting
Common issues and solutions for LocalDNS.wtf.
Troubleshooting Guide
Quick Diagnostics
Run the diagnostic command to check your LocalDNS setup:
localdns doctorThis checks daemon status, API connectivity, hosts file permissions, DNS resolution, port availability, domain registrations, dashboard accessibility, and Node.js version.
Common Issues
dns.local Not Loading (404 Errors)
Symptoms: Browser shows 404 errors, blank page, or "missing required error components" message.
Fixes:
-
Daemon not running
localdns status # Check if running localdns start # Start daemon -
dns.local not in hosts file
grep "dns.local" /etc/hosts # Add if missing echo "127.0.0.1 dns.local" | sudo tee -a /etc/hosts # Or use doctor with --fix flag localdns doctor --fix -
Dashboard domain not registered
localdns list # Check if dns.local is registered # Register dashboard localdns add dns.local --port 1111 --cmd "cd apps/dash && pnpm dev" -
Dashboard not running
localdns start dns.local -
Port conflicts
localdns ports # Check port usage
Daemon Not Starting
Check logs:
cat ~/.localdns/daemon.log
cat ~/.localdns/daemon-error.logVerify daemon binary exists:
ls -la services/daemon/dist/index.jsRebuild if needed:
pnpm buildPort Conflicts
localdns ports # Show port usage
lsof -i :80 # Check port 80
lsof -i :1111 # Check port 1111Change ports if needed:
export LOCALDNS_PORT=3002
export LOCALDNS_PROXY_PORT=8080
localdns startStep-by-Step Troubleshooting
1. Check Daemon Status
localdns statusIf daemon is stopped: localdns start
2. Verify DNS Resolution
ping dns.local
# Should resolve to 127.0.0.13. Check Domain Registration
localdns list4. Start Dashboard Domain
localdns start dns.local5. Verify Dashboard is Running
curl http://localhost:30016. Check Browser
- Clear browser cache
- Try incognito/private mode
- Check browser console for errors
- Verify URL is exactly
http://dns.local(not https)
Advanced Diagnostics
# Check daemon logs
cat ~/.localdns/daemon.log
# Check API health
curl http://localhost:1111/api/status
# Check port usage
lsof -i :80
lsof -i :3001Prevention
- Always run
localdns doctorafter installation - Use
localdns statusregularly to check health - Keep daemon running:
localdns start