Add support for getting the edc from the hostname.