[SOLVED] Migrated config to new box, no connection to relay

I have bought a new computer and transferred all my configs to the new one. Syncthing starts and works with local peers on the local network, but is unable to connect to any remote peers. For example it connects and syncs with my phone if it is on wifi, but not when it’s on mobile data (it worked well in both scenarios with my old Linux box). The GUI shows Discovery: 2/5 where the 2 failures are ipv6 related, which is ok. I don’t know what is going on. I could simply recreate the profiles but I wonder if we could find the reason for the failure. The log simply repeats this pattern:

2021-04-11 14:30:31 Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
2021-04-11 14:30:31 DynamicClient:0xc00014e460:<nil>@dynamic+https://relays.syncthing.net/endpoint looking up dynamic relays
2021-04-11 14:30:31 DynamicClient:0xc00014e460:<nil>@dynamic+https://relays.syncthing.net/endpoint failed to lookup dynamic relays Get "https://relays.syncthing.net/endpoint": dial tcp: lookup relays.syncthing.net on [::1]:53: dial udp [::1]:53: socket: address family not supported by protocol
2021-04-11 14:30:31 Listen (BEP/relay): Get "https://relays.syncthing.net/endpoint": dial tcp: lookup relays.syncthing.net on [::1]:53: dial udp [::1]:53: socket: address family not supported by protocol
2021-04-11 14:30:31 Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down
2021-04-11 14:30:31 c.S.listenerSupervisor: Entering the backoff state.
2021-04-11 14:30:31 c.S.listenerSupervisor: Failed service 'dynamic+https://relays.syncthing.net/endpoint' (2.999424 failures of 2.000000), restarting: false, error: %!s(<nil>)

It’s odd to me because it seems Syncthing only tries ipv6 addresses, however ipv6 is disabled here (as it was on my old box). Please help me finding the culprit.

I suggest you check what dig output looks like for relays.syncthing.net, looks like yor DNS is simply broken.

Bingo, thank you, that was the culprit. I thought it was unnecessary to transfer the DNS settings in resolv.conf, oh how wrong I was. Now it’s perfect.

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