You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally, all result records should have TTL info, not just A / AAAA records. E.g. the MX record currently has no TTL, even though it’s in the DNS response.
I’m not entirely sure, but it seems odd to have the TTL be optional. Don’t the RFCs make TTL a mandatory part of any DNS response?
Generally, from an API perspective, it is odd to have the TTL be part of the record type (e.g. ARecord) since in the DNS world, the TTL is part of the response, but not the record. It seems like it would have been a better design to have something like
Response<A>{varrecord:Avarttl:Int}
or similar, where A would then be ARecord, MXRecord, etc. Just a thought.
On macOS (where DNSSD is being used by default), queries such as:
fail to provide the TTL:
Despite the fact TTL is certainly available:
The TTL is available, if the c-ares underlying implementation is used:
results in:
Tested on: https://github.com/apple/swift-async-dns-resolver/releases/tag/0.4.0
The text was updated successfully, but these errors were encountered: