replace all 127.0.0.1 and localhost with hostname