This seems to do the trick for this specific issue. I do have to agree with ekohl that this should be configurable anyway. There are enough situations to think of where a duplicate might exists (e.g. a node which must have a different DNS name internally from the external DNS)
So instead of having this very specific issue fixed I’d like to see a config option for this.