aboutsummaryrefslogtreecommitdiffstats
path: root/net/unbound.lua
Commit message (Collapse)AuthorAgeFilesLines
* net: Prefix module imports with prosody namespaceKim Alvefur2023-03-171-6/+6
|
* net.unbound: Merge luaunbound and prosody defaults in absence of user config ↵Kim Alvefur2022-06-191-11/+8
| | | | | | | | | | | | | | | | (fixes #1763) (thanks rgd) add_defaults() is supposed to merge 3 tables, the defaults in luaunbound, the defaults from prosody and any config from the prosody config file. In the case where no `unbound={}` has been in the config, it skips over the merge and returns only the prosody built-in defaults. This results in libunbound skipping reading resolv.conf and uses its default behavior of full recursive resolution. Prior to #1737 there were only two tables, the luaunbound defaults and the prosody config, where bypassing the merge and returning the former did the right thing.
* net.unbound: Adjust log level of error to error to errorKim Alvefur2022-05-161-1/+1
| | | | This error is an error, therefore it should be at the error level
* net.unbound: Disable use of hosts file by default (fixes #1737)Kim Alvefur2022-05-161-0/+9
| | | | | This mirrors the behaviour with net.dns and avoids the initialization issue in #1737
* util.id: Adjust entropy levels, with rationalesKim Alvefur2021-12-021-1/+1
| | | | | Modules using ids for logging should not need the now pretty large medium one.
* net.unbound: Fix to initialize under prosodyctlKim Alvefur2021-01-211-0/+1
| | | | | Lazy initialization only worked for async queries, but prosodyctl check dns uses sync queries.
* net.unbound: Delay loading until server has started or first queryKim Alvefur2021-01-051-1/+4
| | | | | Shouldn't need a DNS resolver until later anyways. Might even be sensible to only initialize if a query is actually attempted.
* net.unbound: Move libunbound initialization into a functionKim Alvefur2021-01-051-4/+7
| | | | Prepare for lazy-loading it.
* net.unbound: Allow tracing individual queries with a logger per queryKim Alvefur2021-01-051-6/+9
|
* net.unbound: Don't pass error as logger formatting stringKim Alvefur2021-01-051-1/+1
| | | | | This could cause weirdness if the error contains formatting options, but should be reasonably safe with util.format
* net.unbound: Log net.server interactionsKim Alvefur2021-01-051-0/+2
| | | | Noticed the potential need for this thanks to Ge0rG
* net.unbound: Remove compat for missing promises (pre-0.11)Kim Alvefur2020-06-251-15/+12
| | | | | Code existed in a separate project before merged into Prosody, so util.promise was not always around.
* net.unbound: Strip support for legacy net.server APIsKim Alvefur2020-06-251-37/+3
| | | | | These are not needed since the watchfd API is provided by all net.server backends.
* net.unbound: Async DNS resolver library based on libunbound via luaunboundKim Alvefur2019-03-091-0/+245