Skip to content

[QUERY][DNS] CNameRecord can't be created because DnsString only has an internal constructor #51355

@ChenglongLiu

Description

@ChenglongLiu

Library name and version

Azure.ResourceManager.Dns 1.1.1

Query/Question

DnsString only has internal constructor and cannot be instantiated.

            var cnameRecord = new CNameRecord(
                new ResourceRecordInfo(
                    domainName: queryDomain,
                    recordType: ResourceRecordType.CNAME,
                    recordClass: QueryClass.IN,
                    timeToLive: 3600,
                    rawDataLength: 0),
                canonicalName: ?? DnsString can't be created here

Environment

No response

Metadata

Metadata

Assignees

Labels

MgmtThis issue is related to a management package.Network - DNSneeds-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions