Support for configurable "hosts"

Manish Mehra maneesh.mehra84 at gmail.com
Mon May 2 19:53:41 CEST 2022


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.haxx.se/pipermail/c-ares/attachments/20220502/49f95187/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c_ares_opt_hosts.diff
Type: application/octet-stream
Size: 7600 bytes
Desc: not available
URL: <http://lists.haxx.se/pipermail/c-ares/attachments/20220502/49f95187/attachment.obj>


More information about the c-ares mailing list