puppetlabs/puppetlabs-stdlib — pull request #24 by ssm (2011-11-10 12:50:37+00:00)
Title: Rewrite of is_domain_name function

The is_domain_name function does not check the domain according to the DNS rfc. For instance, it disallows "x.com", which is a correct domain name.

I've attempted to rewrite the checks in order to allow syntactically correct DNS names.

I've also updated the docstring, which referred to "ip address" and not domain.