Added replace kwarg whether to first remove any existing hostnames that match