diff --git a/src/main/lkt.c b/src/main/lkt.c
index d385f5aea942b298d3c2a5093deeece6aedee145..9896751ebd538191f4801388c6fcbf618bd895d7 100644
--- a/src/main/lkt.c
+++ b/src/main/lkt.c
@@ -273,7 +273,8 @@ create_socket(const char *host, const char *port)
         hints.ai_socktype = SOCK_STREAM;
 
         if (getaddrinfo(host, port, &hints, &found) != 0 || (found == NULL))
-            LOG_DEBUG("NET", "getaddrinfo failed, this can be due to php invocation of lkt...");
+            LOG_FATAL("getaddrinfo failed, this can be due to php "
+                      "invocation of lkt or an invalid hostname...");
 
         sock     = *found->ai_addr;
         sock_len = found->ai_addrlen;