Fix default attribute name for domain_name.
Re-factor provider for better platform support, logic.