InetAddress.getByName(ipAddress).getLocalHost().getCanonicalHostName();
The above line takes around 10seconds to execute.
I added the IP and hostname in etc\hosts file and still there is no change.
How does getCanonicalHostName work? Can I get the implementation of that method?
How do I increase the efficiency of this line of code?