Troubleshooting¶
Common issues and solutions when using external-dns-unifios-webhook.
Connection Issues¶
Cannot Connect to UniFi Controller¶
Symptoms:
Solutions:
- Verify the controller URL is correct
-
Check network connectivity using a debug container:
-
Ensure firewall allows HTTPS traffic to UniFi controller
- Use IP address instead of hostname
TLS Certificate Errors¶
Symptoms:
Solutions:
-
Enable TLS skip verification (default):
-
Or mount the UniFi CA certificate
Authentication Failed¶
Symptoms:
Solutions:
- Verify API key is correct
-
Check the secret is properly mounted:
-
Regenerate API key in UniFi controller
- Ensure admin user is active
DNS Record Issues¶
Records Not Created¶
Symptoms: DNS records don't appear in UniFi controller.
Debugging:
-
Check external-dns logs:
-
Check webhook logs:
-
Verify domain filter matches:
Wildcard CNAME Not Working¶
Symptoms:
Cause: UniFi uses dnsmasq which doesn't support wildcard CNAME records.
Solution: Use individual A/AAAA records instead of wildcard CNAME.
Duplicate CNAME Error¶
Symptoms:
Cause: dnsmasq doesn't support multiple CNAME records for the same name.
Solution: Use A records with multiple targets for round-robin, or use a single CNAME.
Performance Issues¶
Slow DNS Updates¶
Symptoms: Records take a long time to appear.
Solutions:
-
Reduce external-dns sync interval:
-
Check for API rate limiting in webhook logs
- Verify UniFi controller performance
High Memory Usage¶
Symptoms: Webhook container using excessive memory.
Solutions:
- Check for large number of DNS records
-
Increase memory limits:
-
Enable debug logging temporarily to investigate
Health Check Failures¶
Liveness Probe Failing¶
Symptoms: Pod keeps restarting due to liveness probe failure.
Debugging:
Solutions:
-
Increase
initialDelaySeconds: -
Check if UniFi controller is accessible
Readiness Probe Failing¶
Symptoms: Pod not receiving traffic.
Debugging:
Solutions:
- Verify UniFi controller connectivity
- Check webhook logs for errors
Debugging¶
Enable Debug Logging¶
View All Logs¶
# external-dns logs
kubectl logs -l app.kubernetes.io/name=external-dns --tail=100
# webhook logs
kubectl logs -l app.kubernetes.io/name=external-dns -c webhook --tail=100
Check Metrics¶
Getting Help¶
If you're still stuck:
- Search existing issues
- Enable debug logging and collect logs
- Open an issue with:
- Webhook version
- UniFi OS and Network versions
- Debug logs (redact API keys)
- Steps to reproduce