Tinc can't connect to names defined in /etc/hosts

Niklas Hambüchen mail at nh2.me
Mon Mar 13 13:20:11 CET 2017


Hi,

I have a host name defined in /etc/hosts (say "1.2.3.4 host1") that
resolves via that but not via DNS; consequently pinging and netcatting
to it works fine.

When I try to use that in a tinc host definition like "Address = host1",
tinc 1.1 tells me

  Error looking up host1 port 655: Name or service not known

Why is that? Does getaddrinfo() tinc uses not consider /etc/hosts?

If I do `socket.getaddrinfo("host1","655")` from Python it seems to work
fine.

Am I missing something?

Niklas


More information about the tinc mailing list