Library to resolve text URLs to IP addresses (IPv4)

Dependents:   NetworkSocketAPI NetworkSocketAPI Nucleo-AWS-IoT-mbed

Branch:
api-changes
Revision:
6:5b28cbc8169c
Parent:
5:d85c1a7e0e9f
Child:
7:cbe1ef566314
--- a/DnsQuery.cpp	Mon Feb 22 19:38:10 2016 -0600
+++ b/DnsQuery.cpp	Mon Feb 22 19:58:10 2016 -0600
@@ -112,9 +112,7 @@
     
     
     //  Ready to send to DNS
-    socket->setIPAddress(_dnsip);
-    socket->setPort(53);
-    socket->open();
+    socket->open(_dnsip, 53);
    
     INFO("Sending packet of length %d",packetlen);
     /*