Skip to content

Sample: TxtRecord #76

@glararan

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions