#811 Honour TTL when resolving host names
Closed: Fixed None Opened 13 years ago by jhrozek.

We agreed on fixing #809 for 1.5.x by resolving host names again after a hardcoded interval when we retry connection to a previously failed service

But a proper fix is to honour TTL values we get from DNS. This needs a couple of more intrusive changes:
- do not use ares_gethostbyname() which only returns struct hostent but rather query directly for A or AAAA records using ares_query()
- change our internal resolver to pass some custom structure that includes the TTL value, not just struct hostent
- expire the host name lookups when the TTL value passes


I'd like to propose this for 1.6

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.6.0

Fields changed

owner: somebody => jhrozek

Fields changed

patch: => 0
status: new => assigned

Fields changed

patch: 0 => 1

master: 1240496

resolution: => fixed
status: assigned => closed

Metadata Update from @jhrozek:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.6.0

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/1853

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata