I also feel that ```validate_domain_name``` has the advantage of not using a regular expression. Regular expressions are hard to read and often difficult to debug.