Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
--dns-servers flag and CURLOPT_DNS_SERVERS ignores port number #4066
I did this
Started a DNS server on localhost:5353 and ran
The documentation indicated that port numbers are passed through to c-ares; however, I believe that this is not the case.
I expected the following
curl to make a DNS request to 127.0.0.1:5353
What happened instead?
curl made a DNS request to 127.0.0.1:53. I confirmed with
I believe the following patch will fix this issue
I have not tested this patch and there do not appear to be any unit tests of this functionality.