Support for configurable "hosts"

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


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.


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: <>
-------------- 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: <>

More information about the c-ares mailing list