I have changed value in /etc/hosts and change was immediately visible. We want to cache this out and use cached hostname instead of reading it on every single measurement.
Or figure out how to use hostname opposed to InetAddress.getLocalHost().getHostName() which is doing reverse lookup by IP in /etc/hosts and picks up first value.
I have changed value in
/etc/hosts
and change was immediately visible. We want to cache this out and use cached hostname instead of reading it on every single measurement.Or figure out how to use hostname opposed to
InetAddress.getLocalHost().getHostName()
which is doing reverse lookup by IP in/etc/hosts
and picks up first value.