Home:ALL Converter>Storing key-value pairs in DNS request

Storing key-value pairs in DNS request

Ask Time:2016-01-08T00:09:52         Author:manash

Json Formatter

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

Author:manash,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/34659882/storing-key-value-pairs-in-dns-request
yy