You are not logged in.

#1 2025-03-10 22:05:09

yxz
Member
Registered: 2023-11-07
Posts: 4

Go based program install dns resolve error.

So before posting here I was able to find a workaround, but I'm not sure if it is a good way to do this.

I was installing `yay` and in the `build()` phase, I get these errors.

clean.go:8:2: github.com/Jguer/aur@v1.2.3: Get "https://proxy.golang.org/github.com/%21jguer/aur/@v/v1.2.3.zip": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:40766->[::1]:53: read: connection refused
cmd.go:11:2: github.com/Jguer/go-alpm/v2@v2.2.2: Get "https://proxy.golang.org/github.com/%21jguer/go-alpm/v2/@v/v2.2.2.zip": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:40766->[::1]:53: read: connection refused
vote.go:8:2: github.com/Jguer/votar@v1.0.0: Get "https://proxy.golang.org/github.com/%21jguer/votar/@v/v1.0.0.zip": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:40766->[::1]:53: read: connection refused
<and more of the same>

Go was trying to resolve dns queries via ipv6. Over on [SOLVED] IPv6 DNS resolution / Networking, Server, and Protection / Arch Linux Forums, I found you can add this to `resolved.conf`, which I did, and the problem was fixed.

basie wrote:

I'm learning a lot, thanks and marking this SOLVED! I discovered that if you really want to make `dig -6` work, you can tell resolved to also use an IPv6 address in stub mode with:

# /etc/systemd/resolved.conf
DNSStubListenerExtra=[::1]:53

https://github.com/systemd/systemd/issu … -713871459 but as you say, completely unnecessary for normal operation.

However, is there a better way to do this, as in that post, its mentioned that an ipv6 listener isn't needed. And I wasn't able to get the same error on my laptop.

Offline

#2 2025-03-11 06:25:02

-thc
Member
Registered: 2017-03-15
Posts: 859

Re: Go based program install dns resolve error.

The question is where did that go program get the idea to ask [::1]? Does your "/etc/resolv.conf" contain a line advertising this?

Offline

Board footer

Powered by FluxBB