What is the recommended place for storing key-value pairs in a DNS request?
I'm designing a system where the DNS requests traverse multiple hops. Some hops may need to append key-value pairs to the traversing DNS request.
I thought about adding a TXT record to the questions section but it looks like no data can be set on the TXT record when it is present in the questions section (I used the dnsjava
library to generate the DNS request). I also thought about using an OPT record.
What is the best practice?
Thanks,
Mickael