Skip to content

How to discover the IP of a given hostname

Dr. Nicola Mingotti edited this page Dec 11, 2021 · 1 revision

Problem. We want to know the IP of a given hostname, can we do that from Cuis?

Solution. Yes, for example to find one of Google IP do this:

NetNameResolver addressForName: 'google.com' timeout: 10.      "=>   #[142 250 184 110]"

NM on 15-Aug-2021. Tested in Cuis5.0-4738.image

Clone this wiki locally