Update local hostname when there is a match