Replace ip address in most outputs with hostname except for those in java code