DNS is the default name resolver in gRPC. gRPC C++ uses C-Ares as default 
library to resolve DNS unless you set GRPC_DNS_RESOLVER=native. Check that 
you have valid nameserver in /etc/resolv.conf.  It is strange that 
GRPC_DNS_RESOLVER=native did not help which should just use the system 
nameresolver. What was the error in that case? Does replacing localhost 
with 127.0.0.1 in the channel help?

On Tuesday, August 4, 2020 at 4:25:36 AM UTC-7 [email protected] wrote:

> I have cross-compiled the code successfully for QNX ARM 7.0, and able to 
> generate the binaries.
>
>
> Very first thing I am going to do is to run the helloworld code on the 
> target. So I built the helloworld code available in cpp folder(since I am 
> using cpp). 
>
>
> I copied only two files greeter_server and greeter_client in target 
> machine. I am able to start server using greeter_server successfully. But 
> when I run greeter_client in another window, I get failure message.
>
> 14: DNS resolution failed
> Greeter received: RPC failed
>
> Here is the logs 
> <https://drive.google.com/file/d/1_kv0PxlcvzHlffVxdQn-KkBBmALQ3x2P/view?usp=sharing>
>  after 
> enabling GRPC_TRACE=ALL, GRPC_VERBOSITY=DEBUG.
>
>
> Please help me know the issue.
>
>
> We do not have DNS server, I tried using GRPC_DNS_RESOLVER=native, but did 
> not helped. 
>
>
> Do we need DNS? If its not DNS then, what is it failing?
>
>
>
> Thank you in advance.
>
>
> -Darshan  Belanke
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/0b409a28-b820-4f1b-a281-806109d657e6n%40googlegroups.com.

Reply via email to