Index: uspace/lib/http/src/http.c
===================================================================
--- uspace/lib/http/src/http.c	(revision 779541be88a7692182b80bde3b7fae49f3832431)
+++ uspace/lib/http/src/http.c	(revision 83b2e73cff9600732dbb3989f0c4ace16146a3ff)
@@ -40,5 +40,6 @@
 #include <macros.h>
 
-#include <inet/dnsr.h>
+#include <inet/endpoint.h>
+#include <inet/host.h>
 #include <inet/tcp.h>
 
@@ -88,18 +89,8 @@
 		return EBUSY;
 	
-	/* Interpret as address */
-	int rc = inet_addr_parse(http->host, &http->addr);
-	
-	if (rc != EOK) {
-		/* Interpret as a host name */
-		dnsr_hostinfo_t *hinfo = NULL;
-		rc = dnsr_name2host(http->host, &hinfo, ip_any);
-		
-		if (rc != EOK)
-			return rc;
-		
-		http->addr = hinfo->addr;
-		dnsr_hostinfo_destroy(hinfo);
-	}
+	int rc = inet_host_plookup_one(http->host, ip_any, &http->addr, NULL,
+	    NULL);
+	if (rc != EOK)
+		return rc;
 	
 	inet_ep2_t epp;
