curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: Curl Error 6: Two RPi 4s Same LAN - Only One Fails To Resolve Host

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Sun, 24 Aug 2025 15:33:26 +0200 (CEST)

On Sun, 24 Aug 2025, Michael Newman via curl-users wrote:

> curl: (6) Could not resolve host: mine.com

> I resolved the issue by remotely power cycling the Pi that failed to resolve
> the host. That worked.
>
> I would like to understand what was going on here and how I can avoid the
> problem in the future.

It is next to impossible to tell what happened without more details. The error
message suggests that when libcurl invoked getaddrinfo() to resolve the
hostname, it returned an error.

If this ever happens again, a first test would be to try other tools that
resolve hostnames using the similar mechanism (like for example "ping") and if
that shows the same problem we can probably assume the problem was in the
local resolver/DNS setup somehow.

-- 
  / daniel.haxx.se || https://rock-solid.curl.dev
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2025-08-24