Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to setup DNS server in QNX7.0: (4 Items)
   
How to setup DNS server in QNX7.0  
I am working on gRPC  for QNX ARM 7.0 platform.

I am able to build the gRPC code for QNX platform. While running these binaries I am facing an issue related to DNS 
server.

D0101 23:54:27.828777594       1 grpc_ares_ev_driver.cc:313]           (c-ares resolver) request:1036ce90 readable on c-
ares fd: 3
D0101 23:54:27.829777489       1 grpc_ares_wrapper.cc:243]             (c-ares resolver) request:1036ce90 
on_hostbyname_done_locked host=localhost C-ares status is not ARES_SUCCESS: Could not contact DNS servers
D0101 23:54:27.829777489       1 grpc_ares_ev_driver.cc:98]            (c-ares resolver) request:1036ce90 Ref ev_driver 
10361460
D0101 23:54:27.829777489       1 grpc_ares_ev_driver.cc:407]           (c-ares resolver) request:1036ce90 notify read on
: c-ares fd: 3
D0101 23:54:27.829777489       1 grpc_ares_ev_driver.cc:105]           (c-ares resolver) request:1036ce90 Unref 
ev_driver 10361460
D0101 23:54:27.830777436       1 grpc_ares_ev_driver.cc:313]           (c-ares resolver) request:1036ce90 readable on c-
ares fd: 3
D0101 23:54:27.830777436       1 grpc_ares_ev_driver.cc:98]            (c-ares resolver) request:1036ce90 Ref ev_driver 
10361460
D0101 23:54:27.830777436       1 grpc_ares_ev_driver.cc:407]           (c-ares resolver) request:1036ce90 notify read on
: c-ares fd: 3
D0101 23:54:27.830777436       1 grpc_ares_ev_driver.cc:105]           (c-ares resolver) request:1036ce90 Unref 
ev_driver 10361460
D0101 23:54:27.831777175       1 grpc_ares_ev_driver.cc:313]           (c-ares resolver) request:1036ce90 readable on c-
ares fd: 3
D0101 23:54:27.831777175       1 grpc_ares_wrapper.cc:243]             (c-ares resolver) request:1036ce90 
on_hostbyname_done_locked host=localhost C-ares status is not ARES_SUCCESS: Could not contact DNS servers
I0101 23:54:27.831777175       1 timer_generic.cc:468]                 TIMER 103614a8: CANCEL pending=true
I0101 23:54:27.831777175       1 timer_generic.cc:468]                 TIMER 103614f8: CANCEL pending=true
D0101 23:54:27.831777175       1 grpc_ares_ev_driver.cc:105]           (c-ares resolver) request:1036ce90 Unref 
ev_driver 10361460
D0101 23:54:27.832777227       1 grpc_ares_ev_driver.cc:119]           (c-ares resolver) request:1036ce90 delete fd: c-
ares fd: 3
D0101 23:54:27.832777227       1 grpc_ares_ev_driver.cc:449]           (c-ares resolver) request:1036ce90 ev driver stop
 working
D0101 23:54:27.832777227       1 grpc_ares_ev_driver.cc:105]           (c-ares resolver) request:1036ce90 Unref 
ev_driver 10361460
D0101 23:54:27.832777227       1 grpc_ares_ev_driver.cc:247]           (c-ares resolver) request:1036ce90 ev_driver=
10361460 on_timeout_locked. driver->shutting_down=1. err="Cancelled"
D0101 23:54:27.833776966       1 grpc_ares_ev_driver.cc:105]           (c-ares resolver) request:1036ce90 Unref 
ev_driver 10361460
D0101 23:54:27.833776966       1 grpc_ares_ev_driver.cc:276]           (c-ares resolver) request:1036ce90 ev_driver=
10361460 on_ares_backup_poll_alarm_locked. driver->shutting_down=1. err="Cancelled"
D0101 23:54:27.833776966       1 grpc_ares_ev_driver.cc:105]           (c-ares resolver) request:1036ce90 Unref 
ev_driver 10361460
D0101 23:54:27.833776966       1 grpc_ares_ev_driver.cc:108]           (c-ares resolver) request:1036ce90 destroy 
ev_driver 10361460
D0101 23:54:27.833776966       1 dns_resolver_ares.cc:367]             (c-ares resolver) resolver:10361560 dns 
resolution failed: {"created":"@86067.831777175","description":"C-ares status is not ARES_SUCCESS: Could not contact DNS
 servers","file":"/local/mnt/workspace/gitlab/grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/
grpc_ares_wrapper.cc","file_line":244,"referenced_errors":[{"created":"@86067.829777489","description":"C-ares status is
 not ARES_SUCCESS: Could not contact DNS servers","file":"/local/mnt/workspace/gitlab/grpc/src/core/ext/filters/
client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc","file_line":244}]}
I0101 23:54:27.834777226 ...
View Full Message
Re: How to setup DNS server in QNX7.0  
No, you do not need a DNS server running on QNX, you need to be setup to talk to one.

Does the rest of networking work correctly i.e. can you ping things by name? If not you have a fundamental networking 
configuration problem in your BSP. If that does work but gRPC doesn't work, then I note that gRPC is using C-ares for 
name resolution which can add complexity. We ship libcares with the curl packages, I don't know if you are using this 
copy or whether you are building your own.

I strongly recommend contacting your QNX technical support person. QNX offers assistance in porting code.
Re: How to setup DNS server in QNX7.0  
Thank you Nick for your reply.

I tried using libcares provided by QNX. But still facing the same issue.

For ping you asked, gRPC is configured for tcp6. And we are using the default address=0.0.0.0 and port=50051.
I am able to run the server. I am facing the problem with client. I can see the server if I do netstat command.

Please help me to understand the problem, because I am new to Networking. I have attached the logs.
Attachment: Text greeter_client_libcares.txt 15.25 KB
Post Deleted