isDomain domain name validator

I need to validate a domain name in my project (no http:// or similar allowed). 
I hope you will accept this tiny PR. Thanks!