<div dir="ltr"><div><font size="2">Thanks Brad. Here is the PR<br></font></div><div><font size="2"><br></font></div><div><font size="2"><a href="https://github.com/c-ares/c-ares/pull/465">https://github.com/c-ares/c-ares/pull/465</a></font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 2, 2022 at 4:59 PM Brad House <<a href="mailto:brad@brad-house.com">brad@brad-house.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
On 5/2/22 1:53 PM, Manish Mehra via c-ares wrote:<br>
<blockquote type="cite">
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>c-ares provides application to configure resolvconf path.
However, no support exists for configurable “hosts” file for
file_lookup function. <br>
</div>
<div><br>
</div>
<div>Please find attached diff which adds support for
ARES_OPT_HOSTS_FILE which can be set with ares_init_options
function.<br>
</div>
<div><br>
</div>
<div>--</div>
<div>Thanks,</div>
<div>Manish</div>
<div><br>
</div>
<div>P.S: Could not create a private branch for pull request. Is
there any policy in place to allow creation of private<br>
</div>
<div><br>
</div>
<div><span style="font-family:monospace"># git push origin
hosts_path_opt<br>
ERROR: Permission to c-ares/c-ares.git denied to mmehra.<br>
fatal: Could not read from remote repository.<br>
<br>
Please make sure you have the correct access rights<br>
and the repository exists.</span></div>
</div>
<br>
</blockquote>
<br>
The patch looks good at first glance, don't see why this wouldn't be
accepted.<br>
<br>
Regarding the issue creating a PR, I'd have to see more commands for
how you forked the repository, then set the remote and origin to say
where something might have messed up. <br>
<br>
If possible it would be great if you can try again
(<a href="https://docs.github.com/en/get-started/quickstart/fork-a-repo" target="_blank">https://docs.github.com/en/get-started/quickstart/fork-a-repo</a>) and
create a PR (once you commit to your fork, the github UI provides an
easy interface to create a PR, usually prompts you at the top when
you view your fork. A PR will then go through the c-ares auto-build
program to ensure all tests pass on all platforms. It makes it
easier to accept the patch.<br>
<br>
<br>
Thanks!<br>
-Brad<br>
</div>
</blockquote></div>