Questions tagged [c-ares]

c-ares is a C library for asynchronous DNS requests (including name resolves)

See also the c-ares home page: https://c-ares.org/

32 questions
9
votes
1 answer

how to build c-ares library in android (NDK)

Can anyone please tell me how to build C-ares library in android (ndk-build)
namith
  • 546
  • 1
  • 8
  • 18
8
votes
1 answer

How do I resolve an IP into host using c-ares?

This is what I've done so far. It compiles, but it segfaults when I try to run it. #include #include #include #include void dns_callback (void* arg, int status, int timeouts, struct hostent* host) { …
greenman
  • 83
  • 1
  • 4
7
votes
1 answer

Does c-ares support IOS?

Do the c-ares support IOS? I need to use c-ares in my company's app running on IOS. But It can't work correctly using "ares_gethostbyname()" and the status code in the callback function returns 11(ARES_ECONNREFUSED) all the time . The same code…
5
votes
1 answer

how enable curl's AsynchDNS?

I want enable curl's AsynchDNS ( find in phpinfo() ) . What do i must do ? This is screenshot : I found out install http://c-ares.haxx.se/ c-ares is a C library that performs DNS requests and name resolves…
meotimdihia
  • 4,191
  • 15
  • 49
  • 69
3
votes
2 answers

What's the source of this enigmatic *** buffer overflow detected ***: terminated error

I have a program which reads from a file which is a list of domain names. It performs asynchronous DNS and then downloads the landing page for each domain using an asynchronous epoll loop. The program runs fine for thousands of iterations and then…
James Read
  • 419
  • 2
  • 7
  • 13
3
votes
1 answer

C-ares get ns records

I'm using c-ares for my DNS queries. The problem is, i don't know how to get NS values. I didn't find any examples and docs are not enought for me :( Man page for ares_parse_ns_reply provides only function description. I've already created my…
artyomboyko
  • 2,781
  • 5
  • 40
  • 54
2
votes
0 answers

ares link errors building Tensorflow from source with bazel on Ubuntu 18.04

bazel build -c opt -- //tensorflow/... produces these errors (after running for a long while): ERROR: /home/luke/tensorflow/tensorflow/c/eager/BUILD:125:1: Linking of rule '//tensorflow/c/eager:c_api_test_gpu' failed (Exit 1) gcc failed: error…
luke
  • 21
  • 1
2
votes
1 answer

how to get DNS server in c-ares

I'm using c-ares-1.10.0 which is a C library for asynchronous DNS requests ,it's a good lib to do name resolves~ Now I have a question when I use c-ares~ there is multi nameserver in "/etc/resolv.conf" such as nameserver 1.1.1.1 nameserver…
user3282867
  • 51
  • 1
  • 3
2
votes
1 answer

BlackBerry 10 C-ARES

I am writing an application that uses C-ARES to resolve DNS. The C-ARES library available with the system doesn't support ares_parse_naptr_reply, something that I really need. I tried to compile c-ares as an external library (version 1.9.1, which we…
1
vote
1 answer

c-ares specifying network interface for the DNS resolves

Is there a way in which you can set the network interface to which the DNS requests can be bound to. We have a project which requires to use a highpriority streaming session go through one interface and all the other requests channeled through the…
Arjun
  • 379
  • 2
  • 12
1
vote
1 answer

curl --connect-timeout and --max-time does not work as expected

The following command will wait > 60 seconds on Ubuntu 22.04: curl --verbose --retry-max-time 0 --retry 0 --connect-timeout "30" --max-time "60" "https://www.google.com/" Here is the testing result: root@test:~# echo $(date) Tue Dec 6 07:26:04 PM…
stackbiz
  • 1,136
  • 1
  • 5
  • 22
1
vote
1 answer

How to use c-ares with epoll?

I have a working code with performs asynchronous DNS resolution with c-ares library calls. The program uses select to monitor file descriptors up to a maximum of FD_SETSIZE which is 1024 on my system. I want to use many more file descriptors so want…
James Read
  • 419
  • 2
  • 7
  • 13
1
vote
0 answers

DNS resolution failure with nested virtualization

I'm using the following gRPC setup: gRPC 1.27.1 installed through vcpkg for Visual Studio 2015. C# Server - Running in a Azure VM. C++ Client - Running in a Hyper V image that is nested in the Azure VM where the server is running. When I try to…
Kakalokia
  • 3,191
  • 3
  • 24
  • 42
1
vote
0 answers

Python requests library not resolving non-authoritative dns lookups

I have a python gunicorn web application that throws the following error when I try to resolve an internal dns name using coredns caching: raise ConnectionError(e, request=request)\nrequests.exceptions.ConnectionError:…
Uday
  • 653
  • 2
  • 6
  • 15
1
vote
2 answers

Building grpc from source using preinstalled packages

I'm trying to integrate gRPC in existing project. It already has directory containing all gRPC's dependencies installed (ssl, c-ares, protobuf and zlib). I want to use them while building gRPC, and install gRPC into the same directory. I downloaded…
1
2 3