DnsQuery for NetworkSocketAPI

Fork of DnsQuery by NetworkSocketAPI

Branch:
api-changes
Revision:
6:5b28cbc8169c
Parent:
5:d85c1a7e0e9f
Child:
7:cbe1ef566314
diff -r d85c1a7e0e9f -r 5b28cbc8169c DnsQuery.cpp
--- 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);
     /*