Skip to content

Sample: TxtRecord #126

Answered by MichaCo
glararan asked this question in Q&A
Jun 14, 2020 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

There is a collection of strings because a TXT resource record can be used to store multiple values.
If quotes are used, the whole value within the quotes is treated as one value (and will produce only one element in the collection); e.g. "some text with spaces".
The same value without quotes would be 4 different values and would create a list of 4 strings.

In your example, all values are in quotes so the full text will be in the first element of the collection I guess.

Different systems then use different mechanisms to separate key/values. You'll have to parse the string yourself if you want to analyse any of the data.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by MichaCo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@EscapeVeloc1ty
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
5 participants
Converted from issue

This discussion was converted from issue #76 on June 20, 2021 18:33.