question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DNS zone import creates absolute names instead of relative

See original GitHub issue

Environment summary

Install Method: curl -L https://aka.ms/InstallAzureCli | bash

CLI Version:

azure-cli (2.0.2)

acr (2.0.0)
acs (2.0.2)
appservice (0.1.2)
batch (2.0.0)
cloud (2.0.0)
component (2.0.0)
configure (2.0.2)
container (0.1.2)
core (2.0.2)
documentdb (0.1.2)
feedback (2.0.0)
find (0.0.1b1)
iot (0.1.2)
keyvault (2.0.0)
lab (0.0.1)
monitor (0.0.1)
network (2.0.2)
nspkg (2.0.0)
profile (2.0.2)
redis (0.1.1b3)
resource (2.0.2)
role (2.0.1)
sql (2.0.0)
storage (2.0.2)
vm (2.0.2)

Python (Linux) 2.7.13 (default, Jan 13 2017, 10:15:16) 
[GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]

OS Version: Linux Fedora 24 (4.9.13-101.fc24.x86_64)

Shell Type: bash

Description

When running a zone import e.g.:

az network dns zone import -g my-rg -n mydomain.com -f mydomain-zonefile.txt

where mydomain-zonefile.txt has the following content:

@     600     IN      SOA     ignored.com. hostmaster.mydomain.com. (
                                2017040400
                                28800
                                7200
                                604800
                                600
                                )

test    3600    IN      A       2.2.2.2

The relative domain record “test” is imported into Azure DNS as absolute value test.mydomain.com instead of relative value test, meaning that lookup test.mydomain.com.mydomain.com works and test.mydomain.com fails.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tjprescottcommented, Apr 19, 2017

@rocketraman that’s what it currently does after I merged #2825.

0reactions
jtulianicommented, Apr 19, 2017

Yup, warn+skip is OK

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source code for dns.zone - dnspython
If absolute, the name must be a subdomain of the zone's origin. ... method may not be used to create new nodes or...
Read more >
Import DNS zone files to Route 53 and troubleshoot ... - AWS
I'm migrating my Domain Name System (DNS) from another service provider. I need to move all the records in an Amazon Route 53...
Read more >
Overview of DNS zones and records - Azure - Microsoft Learn
Where multiple zones share the same name, each instance is assigned different name server addresses. Only one set of addresses can be configured ......
Read more >
Detecting and exploiting path-relative stylesheet import ...
In certain rare situations an oblivious server may detect that the filename ends in '.css' and set 'Content-Type: text/css' automatically, ...
Read more >
Managing Zones - Cisco Content Hub
You can configure the Cisco Prime IP Express DNS server and zones by accepting the system ... Use zone-template name create to create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found