Fix for calculating domain correctly from configured host