[Question] DNS Zone Import
See original GitHub issueHi,
I’m trying to call the dns_records/import
endpoint using this python lib, but I can’t find how to do it.
Please someone provide an example (add this one to examples directory).
Regards
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
bind dns zone file import format - Microsoft Q&A
I am using this method to perform the import: az network dns zone import -g Azure_DNS -n example.org -f test.txt · azure-dns. Comment....
Read more >How can I import a DNS zone file? - GoDaddy Community
I downloaded (exported) the zone file for my domain and made some changes, then imported it back and received an error. To confirm...
Read more >Export and Import DNS Zone with PowerShell from One ...
Copy the exported DNS zone file to the C:WindowsSystem32dns directory on the destination server. · Rename it to have a .dns extension ·...
Read more >Can I upload/import a DNS zone file? | Linode Questions
Sadly your best option if you want to use our DNS Manager is that you would have to create all new records. I...
Read more >How can you import external zone files to Azure DNS zone?
A DNS zone file is a text file that contains details of every Domain Name System (DNS) record in the zone. It follows...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@skyscooby - you are absolutely correct. While the word
import
is a reserved word in Python; using it via the packages command line programcli4
works because it’s searched in the class dictionary vs used in a python language statement. I tried your code and it fails.This is unfortunate and your comment (Does this even work?) is in fact correct - the code was never tested (by me) as python code. I only tested the
cli4
version. You can see a working example in the README file.So … two solutions. The README has the command line example:
This does work.
To code this in Python, some shenanigans is needed. This code works. Here is the core work-around for the reserved name issue:
The full example is as follows:
I will add this to both the README and to the
examples
folder.@skyscooby - Thank you for pointing this out. I will reopen this issue and close once the code is updated. @rogeriolino - Sorry for completely missing this year - my bad!
Does this even work? For whatever reason 2.8.15 doesn’t even recognize import as a valid operation on dns_records… export works tho.