WiFi101 getHostByName DNS library access

I'm seeing good stability and performance from the WiFi 101 shield on both Uno and Mega. Thanks, library makers.

How do I get access to the getHostByName function? I can see references to it in the library code, have used the Ethernet function, but just don't know how to connect the dots with the WiFi101 library.

Thanks.

Try:

IPAddress test;
WiFi.hostByName("www.google.com", test);
Serial.println(test);

The results do not always gain a successful response from the remote server.

Nice! Thanks. For some reason, I was having difficulty finding the right combination of things to get this to compile. Works like a charm. Function returns a 0 or 1 on success, too.

Much appreciated.