cURL DNS Resolution inside docker containers unreliable due to c-ares dependency

Hello,

at some rare cases some curl dns queries are not answered correctly (hard to explain) it seems it is caused by: https://github.com/c-ares/c-ares/issues/683

And will be fixed within https://github.com/c-ares/c-ares/pull/685

Is there a way to patch it in as this is kinda critical though.

It is very hard to debug but in some cases it can cause docker projects to fail because curl cannot resolve the container name as dns inside a docker network