Matthew Wild
d26811f5e5
net.resolvers.service: Honour record 'weight' when picking SRV targets
...
#NotHappyEyeballs
2022-03-17 18:20:26 +00:00
Kim Alvefur
e469d015af
net.resolvers: Report DNSSEC validation errors instead of NoError
...
Thanks Martin bringing this case to attention
2021-12-28 14:58:09 +01:00
Kim Alvefur
96b6f68b23
net.resolvers: Report when hostname fails IDNA
...
Not a particularly user-friendly error message, but better than "unable
to resolve service" and having no clue where it came from.
2021-12-07 21:43:36 +01:00
Kim Alvefur
93121127fa
net.connect: Propagate last error message from resolvers
...
Previously it would only say "unable to resolve server" for all DNS
problems. While "NoError in A lookup" might not make much sense to
users, it should help in debugging more than the previous generic error.
Friendlier errors will be future work.
2021-11-12 16:52:55 +01:00
Kim Alvefur
07ef92dbd8
net.resolvers.service: Only do DANE with secure SRV records
...
If this seems backwards, that' because it is but the API isn't really
designed to easily pass along details from each resolution step onto the
next.
2021-07-18 23:25:45 +02:00
Kim Alvefur
300a9a56c5
net.resolvers: Remove FIXMEs obsoleted by switch to libunbound
2020-06-25 19:24:58 +02:00
Kim Alvefur
dce92c437a
net.resolvers.service: Fix resolving of targets with multiple IPs
...
Each basic resolver was only used once and not kept around to try any
IP addresses but the first one found.
2020-02-16 23:48:31 +01:00
Kim Alvefur
40ffc88bad
net.connect: Add some TODOs and FIXMEs
...
And mention issue numbers: #1246 , #1428 and #1429
2019-12-07 17:05:00 +01:00
Kim Alvefur
ae03335f0b
net.resolvers.service: Pass IP literals directly to basic resolver
...
IP literals will not work with SRV records anyways.
Fixes s2s with IP literals.
2019-11-24 04:43:14 +01:00
Kim Alvefur
03197f584d
Merge 0.11->trunk
2019-11-08 00:58:03 +01:00
Kim Alvefur
2a8b031b75
net.resolvers: Fix traceback from hostname failing IDNA
...
Related to #1426
2019-11-08 00:54:56 +01:00
Kim Alvefur
9c2a74d09c
net.resolvers: Abort on hostnames not passing IDNA validation
...
Prevents error on trying to use nil.
Needs better error reporting in the future.
2019-11-02 19:36:19 +01:00
Kim Alvefur
ba431b5efc
net.resolvers: Apply IDNA conversion to ascii for DNS lookups ( fixes #1426 )
2019-11-02 19:24:26 +01:00
Kim Alvefur
690775a9b4
Merge 0.11->trunk
2019-11-02 19:38:12 +01:00
Kim Alvefur
469ce79a49
net.resolvers.service: Fix DNS fallback
2019-08-17 15:40:52 +02:00
Kim Alvefur
e8e4292dc4
net.resolvers.service: Sort SRV records in correct direction
2018-09-30 13:02:46 +02:00
Kim Alvefur
ca4804c413
net.resolvers.service: Fix sorting SRV record
2018-09-30 12:51:34 +02:00
Kim Alvefur
bb9b344fee
net.resolvers.service: Rename internal variable since net.connect uses it for __tostring
2018-09-29 23:04:53 +02:00
Kim Alvefur
6dfb01673a
net.resolvers.service: Add support for fallback to bare domain and default port
...
The default port must be configured separately to enable this behavior
2018-09-29 22:03:16 +02:00
Kim Alvefur
ce0ce78b78
net.resolvers.service: Early return on empty result set
2018-09-29 22:02:36 +02:00
Kim Alvefur
06b75d8153
net.resolvers.service: Understand when service is explicitly unavailable
...
RFC2782 states:
> A Target of "." means that the service is decidedly not available at
> this domain.
2018-09-29 21:56:47 +02:00
Kim Alvefur
0a784969c0
net.resolvers.service: net.connect resolver that uses SRV records
2018-09-27 12:25:46 +02:00
Kim Alvefur
2b289f34f9
various: Don't rely on _G.unpack existing
2018-12-08 17:09:55 +01:00