Home Dashboard Directory Help
Search

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


Status: 

Active


5
0
Sign in
to vote
Type: Bug
ID: 776964
Opened: 1/19/2013 4:26:34 AM
Access Restriction: Public
1
Workaround(s)
view
3
User(s) can reproduce this bug

Description

The Get-DnsServerResourceRecord outputs incorrect information about TXT record,returns only first part of multi-string. The Class MicrosoftDNS_TXTType returns correct result.

Details
Sign in to post a comment.
Posted by Jamie Bilinski on 11/15/2013 at 11:50 AM
This Parameter Type issue exists in all DNSServer DNSserverResourceRecord v1.0.0 module commands.

Add-DNSServerResourceRecord -TXT will also fail when presented with a valid (in the DNS spec) txt value.

Add-DnsServerResourceRecord : The remote procedure call failed.
At line:1 char:1
+ Add-DnsServerResourceRecord -Txt -DescriptiveText $hostDNStxt -Name "$($hostStr) ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo         : NotSpecified: (PS_DnsServerResourceRecord:root/Microsoft/...rResourceRecord) [Add-DnsServerResourceRecord], Ci
mException
    + FullyQualifiedErrorId : HRESULT 0x800706be,Add-DnsServerResourceRecord

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