[Validator][#2538] hostname validator overwrite 

Close #2538