Skip to content

Add configurability for path to resolv.conf file (#220)#221

Merged
bradh352 merged 3 commits intoc-ares:masterfrom
SirR4T:addResolvConfPath
Sep 16, 2018
Merged

Add configurability for path to resolv.conf file (#220)#221
bradh352 merged 3 commits intoc-ares:masterfrom
SirR4T:addResolvConfPath

Conversation

@SirR4T
Copy link
Copy Markdown
Contributor

@SirR4T SirR4T commented Sep 4, 2018

  • By extending struct ares_options and struct ares_channeldata, and similarly ares_init_options(), ares_save_options(), and init_by_resolv_conf()
  • Added test case, for *nix, within CONTAINED_TEST_F (could not test locally, as local machine is darwin, which does not support linux LXC)
  • Add support for windows (How? also, cannot test locally)
  • No new warnings with --enable-maintainer-mode and --enable-debug
  • Documentation needs to be updated.

Fixes #220

@coveralls
Copy link
Copy Markdown

coveralls commented Sep 4, 2018

Coverage Status

Coverage increased (+0.3%) to 92.965% when pulling 90b2516 on SirR4T:addResolvConfPath into ad58527 on c-ares:master.

Comment thread ares_init.c
}
}
fclose(fp);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too much duplication here of logic. If someone explicitly configured a resolveconf_path, I don't see any reason to use the default PATH_RESOLV_CONF. So really we should just do this once. I'd think it makes more sense to error out anyhow.

@bradh352
Copy link
Copy Markdown
Member

bradh352 commented Sep 8, 2018

regarding windows support, this would be non-windows only ... simply putting it in the docs is sufficient.

@bradh352
Copy link
Copy Markdown
Member

bradh352 commented Sep 8, 2018

looks good to me, if you just add the minor doc tweak I think it should be good to merge.

@SirR4T
Copy link
Copy Markdown
Contributor Author

SirR4T commented Sep 9, 2018

Great, will do that. Also, anything to be done towards the Travis build failures? I'm facing the following:

libcares_la-windows_port.gcno:no functions found
{u'message': u"Couldn't find a repository matching this job.", u'error': True}

@bradh352
Copy link
Copy Markdown
Member

bradh352 commented Sep 9, 2018

looks like travis succeeded to me. Where did you see this?

@SirR4T
Copy link
Copy Markdown
Contributor Author

SirR4T commented Sep 9, 2018

Ah, my bad. This was against my fork, in my travis account.

@SirR4T
Copy link
Copy Markdown
Contributor Author

SirR4T commented Sep 16, 2018

Hi @bradh352 , just pushed some documentation to the man pages, please review.

@bradh352 bradh352 merged commit 7e6af8e into c-ares:master Sep 16, 2018
@bradh352
Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants