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

Daniel Stenberg via curl-users <[email protected]> Sun, 24 Aug 2025 15:33:26 +0200 (CEST)
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
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