Elixir, Ollama, GPU, Private access error - {:error, %Req.TransportError{reason: :nxdomain}}

I had followed a combination of articles to set up an auto start/stop Ollama gpu instance set with wireguard private networking and then when trying to make an api request to the api I kept getting the following error

{:error, %Req.TransportError{reason: :nxdomain}}

which meant it couldn’t find the domain (dns problem)

I had fixed my first problem (Tailscale overrides Wireguard for DNS on my mac) only to find this problem.

1 Like

The solution was to add the inet6: true option to the request (using Req) and everything worked well after that.

Req.post(@api_url, headers: headers, body: body, inet6: true)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.