use dns_name for common_hostname
Merge pull request #1178 from edx/jarv/common-hostname

use dns_name for common_hostname