I need to get the DNS address, for example \"http://stackoverflow.com/questions/ask\". I used the following code and able to get in the form of 192.X.X.X.>
InetAddress ia = InetAddress.getByAddress(new byte[] {74,125,127,106});
// or
ia = InetAddress.getByName("74.125.127.106");
System.out.println(ia.getCanonicalHostName());