Skip to content

Azure CLI, DNS: An Upper.Case zone name is concatenated to the record name, causing duplication #7907

@zvargams

Description

@zvargams

Describe the bug
When the Azure CLI DNS import command is called with a zone name containing Upper.Case.Letters, then the zone name is concatenated to the record name, causing duplication.

To Reproduce
Import a zone with:

az network dns zone import --resource-group xxx --name Test.Zone

will import / create the following records:

(1/27) Imported 1 records of type 'soa' and name 'test.zone'
(2/27) Imported 1 records of type 'a' and name 'test.zone'
(3/27) Imported 1 records of type 'mx' and name 'test.zone'
(8/27) Imported 5 records of type 'txt' and name 'test.zone'
(9/27) Imported 1 records of type 'cname' and name '*.test.zone' 

while with all lower case:

az network dns zone import --resource-group xxx --name test.one

does import it properly:

(1/27) Imported 1 records of type 'soa' and name '@'
(2/27) Imported 1 records of type 'a' and name '@'
(3/27) Imported 1 records of type 'mx' and name '@'
(8/27) Imported 5 records of type 'txt' and name '@'
(9/27) Imported 1 records of type 'cname' and name '*'

Expected behavior
DNS is case insensitive, therefore having upper or lower case letters in the zone name should not lead to different behaviors / results.

Environment summary
Windows 10

az --version
azure-cli (2.0.28)

Python (Windows) 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)]

Metadata

Metadata

Assignees

Labels

Networkaz network vnet/lb/nic/dns/etc...Network - DNSaz network dns

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions