domain-validateDomain
domain-validateDomain
Validates if a domain is correctly configured, optionally against a specific server IP.Annotations:Example:Response (Valid):Response (Invalid):
- Read-only:
true - Idempotent:
true
The domain name to validate (e.g., example.com).
Optional server IP to validate DNS resolution against.
Whether the domain is correctly configured.
The IP address the domain currently resolves to.
Validation result message.
Use Cases
Pre-deployment Validation
Before creating a domain in Dokploy, validate that the DNS is correctly configured:Troubleshooting Domain Issues
If a domain isn’t working as expected, validate the DNS configuration:Verify Domain Propagation
After updating DNS records, check if the changes have propagated:DNS propagation can take up to 48 hours, though it typically happens within minutes to hours. If validation fails, wait a bit and try again.
Common Validation Errors
Domain Not Resolving
If the domain doesn’t resolve to any IP:- Check that the DNS A record is configured
- Verify the domain registrar settings
- Ensure nameservers are correctly set
Wrong IP Address
If the domain resolves to the wrong IP:- Update the DNS A record to point to the correct server IP
- Wait for DNS propagation
- Clear local DNS cache if needed
SSL Certificate Issues
If SSL isn’t working after domain validation:- Ensure the domain is validated and resolving correctly
- Check that the certificateType is set correctly in the domain configuration
- Verify that Let’s Encrypt can reach your server on port 80 (for HTTP-01 challenge)