Search

The Get-DnsServerResourceRecord outputs incorrect information about TXT record by Kazun

Active

1
0
Sign in
to vote
Type: Bug
ID: 776964
Opened: 1/19/2013 4:26:34 AM
Access Restriction: Public
1
Workaround(s)
0
User(s) can reproduce this bug
The Get-DnsServerResourceRecord outputs incorrect information about TXT record,returns only first part of multi-string. The Class MicrosoftDNS_TXTType returns correct result.

Details (expand)
How often does this happen?
Always Happens

Have you seen this problem before in this product?

No, this is new to the most recent version
Reproduction Steps
dnscmd /recordAdd contoso.com TXTTEST txt line1 line2 line3

Get-DnsServerResourceRecord -ZoneName contoso.com TXTTEST

HostName                 RecordType Timestamp            TimeToLive     RecordData
--------                 ---------- ---------            ----------     ----------
TXTTEST                 TXT        0                    01:00:00        line1
Expected Results
dnscmd /EnumRecords contoso.com TXTTEST

Returned records:
@                3600 TXT             line1
        line2
        line3

Command completed successfully.

gwmi -Namespace "root\microsoftdns" -Class MicrosoftDNS_TXTType | ft RecordData,TextRepresent
ation

RecordData                                                 TextRepresentation
----------                                                 ------------------
"line1" "line2" "line3"                                     TXTTEST.contoso.com IN TXT "line1" "line2" "line3"
File Attachments
0 attachments
Sign in to post a comment.
Sign in to post a workaround.
Posted by Kazun on 1/19/2013 at 4:27 AM
dnscmd /EnumRecords contoso.com TXTTEST
gwmi -Namespace "root\microsoftdns" -Class MicrosoftDNS_TXTType | ft RecordData,TextRepresent