resource hostname detection