How in Java can I easily get the ip-адрес of the domain name of the host?

    1 answer 1

     InetAddress.getByName("domain") 

    Google will immediately answer you something like this:

    https://stackoverflow.com/questions/2462398/how-to-get-the-ip-address-from-the-domain-name-in-java