Re: Support for configurable "hosts"

2022-05-02 Thread Manish Mehra via c-ares
Thanks Brad. Here is the PR

https://github.com/c-ares/c-ares/pull/465

On Mon, May 2, 2022 at 4:59 PM Brad House  wrote:

> On 5/2/22 1:53 PM, Manish Mehra via c-ares wrote:
>
> Hi,
>
> c-ares provides application to configure resolvconf path. However, no
> support exists for configurable “hosts” file for file_lookup function.
>
> Please find attached diff which adds support for ARES_OPT_HOSTS_FILE which
> can be set with ares_init_options function.
>
> --
> Thanks,
> Manish
>
> P.S: Could not create a private branch for pull request. Is there any
> policy in place to allow creation of private
>
> # git push origin hosts_path_opt
> ERROR: Permission to c-ares/c-ares.git denied to mmehra.
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
>
>
> The patch looks good at first glance, don't see why this wouldn't be
> accepted.
>
> 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.
>
> If possible it would be great if you can try again (
> https://docs.github.com/en/get-started/quickstart/fork-a-repo) 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.
>
>
> Thanks!
> -Brad
>
-- 
c-ares mailing list
c-ares@lists.haxx.se
https://lists.haxx.se/listinfo/c-ares


Re: Support for configurable "hosts"

2022-05-02 Thread Brad House via c-ares

On 5/2/22 1:53 PM, Manish Mehra via c-ares wrote:

Hi,

c-ares provides application to configure resolvconf path. However, no 
support exists for configurable “hosts” file for file_lookup function.


Please find attached diff which adds support for ARES_OPT_HOSTS_FILE 
which can be set with ares_init_options function.


--
Thanks,
Manish

P.S: Could not create a private branch for pull request. Is there any 
policy in place to allow creation of private


# git push origin hosts_path_opt
ERROR: Permission to c-ares/c-ares.git denied to mmehra.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.



The patch looks good at first glance, don't see why this wouldn't be 
accepted.


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.


If possible it would be great if you can try again 
(https://docs.github.com/en/get-started/quickstart/fork-a-repo) 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.



Thanks!
-Brad-- 
c-ares mailing list
c-ares@lists.haxx.se
https://lists.haxx.se/listinfo/c-ares