Skip to content

Sample: TxtRecord #76

Description

@glararan

I wonder how to read key/value from TxtRecord.

I have following code

IDnsQueryResponse response = await dnsClient.QueryAsync(domainInfo.Hostname, QueryType.TXT);

IEnumerable<DnsClient.Protocol.TxtRecord> records = response.Answers.TxtRecords();

However TxtRecord has only available properties: Text which is ICollection<string>. I suppose its value field splitted by ; or whitespace?

How I am suppose to retreive key?
e.g.:
image
Key: google.com
Value: docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions