Skip to content
Discussion options

You must be logged in to vote

The import mechanisms provided by NetBox (which is everything that's on offer with the "Import" links in NetBox) do not support importing special file formats at all, particularly not zone files.

In order to import data from master zone files you need to have a library that is able to parse them, which can for instance be done using dnspython. In the examples directory there is a sample importer that can be used to import directly from a DNS server via AXFR, but (currently) not a zone file importer.

If you are comfortable with Python you can very easily adapt AXFR_Importer.py to read from zone files instead. Basically you need to replace

        try:
            axfr_zone = from_xfr(
    …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@joanna159
Comment options

Answer selected by joanna159
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants