aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
Commit message (Collapse)AuthorAgeFilesLines
* net: Prefix module imports with prosody namespaceKim Alvefur2023-03-171-5/+5
|
* various: Update IETF RFC URLs for tools.ietf.org transitionKim Alvefur2022-08-051-2/+2
| | | | | | See https://www.ietf.org/blog/finalizing-ietf-tools-transition/ Already done in various other places.
* Spelling: Fix various spelling mistakes (thanks timeless)Kim Alvefur2022-03-071-5/+5
| | | | | | Words, sometimes I wonder how they even work Maybe I missed something.
* net.dns: Disable jitter for default resolver (used by blocking dns.lookup() ↵Matthew Wild2020-06-281-0/+1
| | | | | | calls) This fixes 'prosodyctl check dns' being slow.
* net.dns: Reduce default timeout to 5sMatthew Wild2020-06-251-1/+1
| | | | | Most healthy queries will return well within this time, and the new retry logic should help spread the cost of additional retries.
* net.dns: Increase backoff delaysMatthew Wild2020-06-251-1/+1
| | | | Not entirely happy with the overall logic here.
* net.dns: Add jitter to spread queries and reduce failures due to congestionMatthew Wild2020-06-251-2/+20
|
* net.dns: Fix timeout retry logicMatthew Wild2020-06-251-16/+21
| | | | | | | On timeout the query would be resent twice - once within servfail(), and again inside the timeout callback. This commit moves all retry logic to servfail().
* net.dns: Add some debug loggingMatthew Wild2020-06-251-0/+4
|
* net.dns: Handle being loaded outside of ProsodyKim Alvefur2020-02-241-2/+2
| | | | | | `if timer ...` suggests that this was intended, but it did not work because net.timer depends on net.server which refuses to be loaded outside of Prosody.
* net.dns: Close resolv.conf handle when done (fixes #1342)Kim Alvefur2019-04-131-0/+1
|
* Merge 0.10->trunkKim Alvefur2018-06-101-2/+10
|\
| * net.dns: Lazily generate unknown RR type namesKim Alvefur2018-06-101-3/+12
| |
| * Backed out changeset eae606b9266c: Used a lot of memoryKim Alvefur2018-06-101-5/+4
| |
* | net.dns: Expand table of known RR types from IANA registryKim Alvefur2018-06-091-5/+93
| |
* | Merge 0.10->trunkKim Alvefur2018-06-091-6/+11
|\|
| * net.dns: Syntesize type names for the full rangeKim Alvefur2018-06-091-4/+5
| | | | | | | | | | | | | | | | Otherwise unknown records are identified as A records. This also fixes various tracebacks unearthed by previous commits and mis-identified records. Related to #1056 #976 #819
| * net.dns: Don't attempt to cache unparsed data (fixes #1056)Kim Alvefur2018-06-091-1/+1
| | | | | | | | | | | | | | rr[qtype:lower()] can be nil. I think this happens if the type does not have a parser. Also see #819 #976
| * net.dns: Also cache records from the 'additional' sectionKim Alvefur2018-06-031-0/+4
| | | | | | | | Could be getting A/AAAA records here when asking for SRV
| * net.dns: Cache all records from the 'answer' section (fixes #487)Kim Alvefur2018-06-091-1/+1
| | | | | | | | This should preserve CNAME records included here
* | vairious: Add annotation when an empty environment is set [luacheck]Kim Alvefur2018-02-281-0/+1
| |
* | Merge 0.10->trunkKim Alvefur2017-12-011-1/+1
|\|
| * net.dns: Don't compress a single zero group in IPv6 addresses to match ↵Kim Alvefur2017-12-011-1/+1
| | | | | | | | behaviour of inet_ntop
* | net.dns: Use inet_ntop from util.net if availableKim Alvefur2017-11-291-0/+13
|/
* net.dns: Correctly apply lower bound of RTT (thanks Ge0rG)Kim Alvefur2017-09-241-1/+1
|
* Merge 0.9->0.10Kim Alvefur2017-06-131-1/+1
|\
| * net.dns: Prevent answers from immediately expiring even if TTL=0 (see #919)Kim Alvefur2017-06-131-1/+1
| |
* | Merge 0.9->0.10Kim Alvefur2017-05-271-8/+2
|\|
| * net.dns: Simplify expiry calculation (fixes #919)Kim Alvefur2017-05-221-8/+2
| |
* | net.dns: remove unused variable unpack [luacheck]Anton Shestakov2016-07-281-2/+2
| |
* | net.dns: remove unused one-letter loop variables [luacheck]Anton Shestakov2016-07-141-4/+4
| |
* | net.dns: don't use "for s,s in pairs..." (unused loop variable s) [luacheck]Anton Shestakov2016-07-091-2/+2
| |
* | net.dns: remove unused one-letter loop variables [luacheck]Anton Shestakov2016-07-091-4/+4
| |
* | net.dns: Import unpack() in forward-compatible way (Fixes compat with Lua5.2+)Kim Alvefur2016-03-281-2/+2
| |
* | Merge 0.9->0.10Kim Alvefur2016-01-221-7/+7
|\|
| * net.dns: Remember query only after it was sent, in case it was not (fixes #598)Kim Alvefur2016-01-211-5/+5
| |
* | Merge 0.9->0.10Kim Alvefur2016-01-081-2/+4
|\|
| * Backout 88d54bec26b7 prior to release, as it certainly requires more testing0.9.9Matthew Wild2016-01-081-1/+3
| |
| * net.dns: Allow a zone id in resolv.conf (eg like %eth0)Kim Alvefur2016-01-041-1/+1
| |
| * net.dns: Support IPv6 addresses in resolv.conf [Backported from 0.10]Florian Zeitz2013-06-181-6/+13
| |
* | Merge 0.9->0.10Matthew Wild2015-09-251-3/+1
|\|
| * net.dns: Unconditionally cache records found in answersMatthew Wild2015-05-251-3/+1
| |
* | net.dns: Use new IPv4-specific socket factory if available (fixes dns on ↵Kim Alvefur2015-09-251-1/+1
| | | | | | | | libevent with latest development version of luasocket)
* | net.*: Remove use of module() functionKim Alvefur2015-02-211-2/+2
| |
* | net.dns: Remove resolver:new(), as it needlessly and incorrectly duplicates ↵Matthew Wild2015-07-061-11/+0
| | | | | | | | dns.resolver()
* | Merge 0.9->0.10Kim Alvefur2015-05-031-1/+1
|\|
| * net.dns: Make sure argument to math.randomseed does not overflow a 32 bit ↵Kim Alvefur2015-04-261-1/+1
| | | | | | | | *signed* int (blame Lua). Closes #439
* | Merge 0.9->0.10Kim Alvefur2015-04-261-3/+8
|\|
| * net.dns, mod_s2s: Add chasing of CNAMEs to net.dns and remove it from mod_s2sKim Alvefur2015-04-241-3/+8
| |
* | Merge 0.9 -> 0.10Kim Alvefur2014-11-091-7/+12
|\|