dynamically update hostname in getcapabilities