abh / geodns

DNS server with per-client targeted responses
Apache License 2.0
1.37k stars 191 forks source link

Long text does not work #143

Open ghost opened 2 months ago

ghost commented 2 months ago

Hello there,

I found out that querying txt with long results will not work on this library.

Any solutions for that?

ghost commented 2 months ago

https://github.com/miekg/dns/issues/1566

abh commented 2 months ago

That's a protocol limitation, no? You need to break the record into multiple smaller pieces.

ghost commented 2 months ago

@abh Even when breaking into smaller sections, it creates double records, we do store encrypted text in txt records, when the recursive resolvers cache responses the order is not as we defined, I managed to fix all the issues, if you had time you can take a look into my repo and I can open a pull request if you want, https://github.com/matiniamirhossein/geodns

ghost commented 2 months ago

But the order will be correct in that case, that was the reason.