We just upgraded to Java 8 on Amazon Linux. We are using Spring 4.3.8.RELEASE. It used to be that we could get our machine hostname by setting up beans in our application context file like so … But with Java 8, the bean “hostname” now contains the string Before Java 8, it used to contain the “hostname” value as run
Tag: hostname
How to get hostname from IP (Linux)?
I’d like to get remote machine/hostname through IP Address. I found lots of answer such as nslookup, host, resloveip, etc.. but I still can’t get hostname from my target machine(cent OS, ubuntu etc…) It seems need to register to DNS server? I have a machine named test and using IP 10.1.27.97 but I used the method above still can’t not