hostname and fqdn validations

`module` instead of `class`