resolve hostname before sending to grpc
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