Skip to main content

netbox-plugin-dns provider for octodns

octodns provider for netbox-plugin-dns

syncs dns records from and to netbox via octodns

config

providers:
  config:
    class: octodns_netbox_dns.NetBoxDNSProvider
    # Netbox instance url
    # [mandatory]
    url: "https://some-url"
    # Netbox API token
    # [mandatory]
    token: env/NETBOX_API_KEY
    # Filter by zone view. Can either be the name of the view, false or null.
    # false/null -> do not filter by view.
    # [optional, default=null]
    view: null
    # When records sourced from multiple providers, allows provider
    # to replace entries coming from the previous one.
    # Implementation matches YamlProvider's 'populate_should_replace'
    # [optional, default=false]
    replace_duplicates: false
    # Make CNAME, MX and SRV records absolute if they are missing the trailing "." (dot).
    # You can instead also use the "octodns.processor.trailing_dots.EnsureTrailingDots" provider.
    # [optional, default=false]
    make_absolute: false
    # Control how NS TTL is derived when reading from NetBox.
    # soa_refresh = Preserve the default behavior and use the zone's soa_refresh for all NS records.
    # record      = Use the record TTL stored in NetBox, falling back to zone.default_ttl.
    # fixed       = Use ns_ttl_value for apex NS and record/default TTL for delegated NS records.
    # [optional, default=soa_refresh]
    ns_ttl_mode: soa_refresh
    # TTL value used when ns_ttl_mode=fixed for apex NS records.
    # [optional, default=14400]
    ns_ttl_value: 14400
    # Disable automatic PTR record creating in the NetboxDNS plugin.
    # [optional, default=true]
    disable_ptr: true
    # Disable certificate verification for unsecure https.
    # [optional, default=false]
    insecure_request: false
    # Only include zones with this status when dynamic zones are used, e.g. "*".
    # [optional, default=active]
    zone_status_filter: active
    # Only include records with this status when records are listed from a zone.
    # [optional, default=active]
    record_status_filter: active
    # Maximal page size of queries.
    # A value of 0 means: show every item. Can cause errors with the NetBox setting: MAX_PAGE_SIZE
    # [optional, default=0]
    max_page_size: 0
    # Allow multi threading, useful for large dns zones, see: https://github.com/netbox-community/pynetbox#threading
    # [optional, default=False]
    enable_threading: False

compatibility

actively tested on the newest netbox-plugin-dns and netbox versions

provider netbox-plugin-dns netbox
>= v0.3.3 >=0.21.0 >=3.6.0
>= v0.3.6 >=1.0.0 >=4.0.0
>= v0.3.11 >=1.2.3 >=4.2.0
>= v0.3.15 >=1.3.0 >=4.2.0

limitations

the records can only be synced to netbox-dns if the zone is already existing. the provider CAN NOT create zones (as of now).

install

via pip

pip install octodns-netbox-dns

via pip + git

pip install octodns-netbox-dns@git+https://github.com/olofvndrhr/octodns-netbox-dns.git@main

via pip + requirements.txt

add the following line to your requirements file

octodns-netbox-dns@git+https://github.com/olofvndrhr/octodns-netbox-dns.git@main

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

octodns_netbox_dns-0.3.19.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

octodns_netbox_dns-0.3.19-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file octodns_netbox_dns-0.3.19.tar.gz.

File metadata

  • Download URL: octodns_netbox_dns-0.3.19.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.1 {"ci":true,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.11.15"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.11.15","system":{"name":"Linux","release":"6.17.0-1018-azure"}} HTTPX2/2.5.0

File hashes

Hashes for octodns_netbox_dns-0.3.19.tar.gz
Algorithm Hash digest
SHA256 93048bf9e61de43d88f82127d154badbc9c40d9824fa1bea596cfb79949dacdf
MD5 8a951e07a9dde6f4e2a98fcd06deaa5a
BLAKE2b-256 ac32fb76ed2e426a472bc79d6e856dd50a99f0a1822123e1fc73ac2abe37a13e

See more details on using hashes here.

File details

Details for the file octodns_netbox_dns-0.3.19-py3-none-any.whl.

File metadata

  • Download URL: octodns_netbox_dns-0.3.19-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.1 {"ci":true,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.11.15"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.11.15","system":{"name":"Linux","release":"6.17.0-1018-azure"}} HTTPX2/2.5.0

File hashes

Hashes for octodns_netbox_dns-0.3.19-py3-none-any.whl
Algorithm Hash digest
SHA256 8acc8162d9b52b5a98966070253abdcc38bd41f0e2da03d53041e122a9aaf62b
MD5 b01c9aa747dcdedf918a52db53b117a5
BLAKE2b-256 f6e0b83a98d48e7b41e631c51339941bc3f89e84ef05fbc2a64f9f6c30e1f42d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page