Validates domain names against RFC standards, checking syntax, length limits, and character restrictions. Access via MCP in AI coding assistants or GET /v1/validate/domain REST endpoint. Returns boolean validation status with detailed error messages for invalid domains. Handles internationalized domains, subdomains, and edge cases like trailing dots.
curl "https://tinyfn.io/v1/validate/domain" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/validate/domain', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/validate/domain',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's validation tools:
{
"mcpServers": {
"tinyfn-validation": {
"url": "https://tinyfn.io/mcp/validation",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Validates RFC 1035/1123 compliance: max 253 characters total, 63 per label, valid characters (a-z, 0-9, hyphens), no consecutive hyphens, and proper label structure.
Yes, supports IDN validation including punycode conversion. Validates both Unicode and ASCII representations of international domains.
Simply ask your AI assistant to validate a domain - it will call the TinyFn validation tool and return structured results with pass/fail status and specific error details.
Yes, validates multi-level domains like api.subdomain.example.com, checking each label separately while enforcing overall length and structure rules.
This validates syntax only - whether a domain name is properly formatted. It doesn't check if the domain actually exists or resolves in DNS.
Get your free API key and start using Validate Domain in seconds.
Get Free API Key