append locally configured domain to hostname to send to api