Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to use unbound to configure timeouts #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vinubalaji
Copy link

unbound is an async dns library and provides features like DNSSEC, caching, etc.

vinubalaji and others added 3 commits November 29, 2012 16:03
… box

Also add unbound in configure.ac so that configure can detect the presence of
unbound library. You will have to run bootstrap to recompile with unbound.
This doesn't use the unbound parsing since unbound_result doesn't have
the ttl field which is used by the libspf2 caching code.

Use the raw answer packet and parse the fields the old way. (We
could use ldns if we want to, but I just used the same code that
 does the parsing). The ultimate goal is to use the unbound async call
to configure a timeout for the dns lookups.
Timeouts can be configured by using a call to SPF_server_set_dns_timeout.
Use select and unbound async calls to achieve timeout. In case we
timeout, cancel the unbound query.

The default timeout is set to be 5.0 seconds.
@shevek
Copy link
Owner

shevek commented Sep 24, 2014

Currently squashed into a branch, managed to keep the author attribution. Will reformat and merge.

@FGasper
Copy link

FGasper commented Aug 23, 2021

@shevek Would you still accept this PR were the conflicts to be resolved?

Of note, from one of the commits:

This doesn't use the unbound parsing since unbound_result doesn't have the ttl field which is used by the libspf2 caching code.

This is no longer true; unbound_result has included ttl for some time now.

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