Closed romange closed 7 months ago
@dranikpg update: the problem seems to be related to binding ipv6 network interface and not to /etc/hosts. to reproduce:
./dragonfly --logtostderr --bind ::1 --port 6379
./dragonfly --logtostderr --bind ::1 --port 6380
[::1]:6380> replicaof ::1 6379
(error) ERR could not resolve master dnsNo route to host
the problem started with v1.16 because we switched to DnsResolve in replication
Closed with #247
Some environments do not rely on DNS servers for dns resolution. It seems that we do not support this case.
Expected: /etc/hosts would be taken into account.
a few leads to investigate:
char *hosts_path;
Seems that the first option would be a cleaner solution.