Skip to content

resolve hostname before sending to grpc

Abderrahim Kitouni requested to merge abderrahim/resolve-remotes into master

Description

When contacting remote CAS (and RE) servers, buildstream gives the hostname to grpc which will resolve it using ares. While the latter tries to parse /etc/nsswitch.conf, it only uses DNS and the hosts file and ignores everything else.

Changes proposed in this merge request:

  • resolve the hostname using socket.gethostbyname before sending it to grpc

Merge request reports