replaceHostname is per host config