first try raw, unexpanded name
authorChristian Grothoff <christian@grothoff.org>
Sun, 24 Feb 2019 07:17:22 +0000 (08:17 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 24 Feb 2019 07:17:22 +0000 (08:17 +0100)
src/util/gnunet-service-resolver.c

index 0df213588d2811bbd6887b27f12ad2a81236237e..336e35f94476c079e0113a7fe9d312dfa79d7a5d 100644 (file)
@@ -1037,6 +1037,12 @@ process_get (const char *hostname,
 {
   char fqdn[255];
 
+  if (GNUNET_NO !=
+      try_cache (hostname,
+                 record_type,
+                 client_request_id,
+                 client))
+    return;
   if (  (NULL != my_domain) &&
         (NULL == strchr (hostname,
                          (unsigned char) '.')) &&
@@ -1152,6 +1158,9 @@ handle_get (void *cls,
   {
     /* IP from hostname */
     hostname = GNUNET_strdup ((const char *) &msg[1]);
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+               "Client asks to resolve `%s'\n",
+               hostname);
     switch (af)
     {
       case AF_UNSPEC: