fqdn

Validate fully-qualified domain names against RFC 1123 standard.

pipmacoslinuxwindows
Try with needOr install directly
Source

About

Validates fully-qualified domain names against RFC 1123, so that they are acceptable to modern bowsers

Commands

fqdn

Examples

check if a domain name is valid$ fqdn example.com
validate multiple domain names at once$ fqdn example.com test.org subdomain.example.co.uk
test if a domain with subdomain passes validation$ fqdn api.production.example.com
validate domain names from a file line by line$ cat domains.txt | xargs fqdn
verify domain name is browser compatible$ fqdn my-domain-123.example.com