Reads in a list of domains from stdin and outputs those with a valid TLD according the latest list from ICANN.
Assuming you have Go installed you can run the following:
go install github.com/cybercdh/validateDomains@latestecho foo.example.com | validateDomains
or
cat domains.txt | validateDomainsPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.