In our private network. We have physical host name (x.mycompany.com) and dns resolvable (x1.mycompany.com) virtual host name configured to the actual physical host name.
How in java, I can verify if they both inturn resolve to same?
Virtual host has it's own IP address which is different to physical host. So I can't compare the IP address to check if they both are same.
Any help is appreciated. Thanks.