Skip to main content

netbox-pdns-connector

CI PyPI License NetBox

NetBox Community plugin that pushes active DNS zones and records from netbox_dns to one or two PowerDNS Authoritative servers via the REST API v1.

This plugin is a connector only: it does not store zones or records. Edit DNS data in Plugins → DNS (netbox_dns); this plugin syncs that data to PowerDNS and shows live health / SOA serial parity.

Ideal for operators who already use NetBox + netbox_dns as the DNS source of truth and want PowerDNS (single node or HA pair) as the serving plane.

Features

Area What you get
UI Plugins → PowerDNS → Live Status (API probe + zone SOA parity) + zone detail (read-only) + Settings
Sync RQ job: Sync now, configurable interval, optional realtime on netbox_dns changes
Targets Primary and optional secondary PowerDNS API URLs (shared API key supported)
Push model Native zones; atomic RRset REPLACE; orphan RRset DELETE; soa_edit_api=NONE so NetBox owns SOA serials
Safety Dry-run mode, Fernet-encrypted API key (Django SECRET_KEY), optional DNS view filter

Compatible with NetBox 4.2+ (tested on 4.7). License: Apache-2.0.

Requirements

  • NetBox 4.2 or newer with netbox-rq running
  • netbox-plugin-dns installed and migrated
  • PowerDNS Authoritative with API enabled (api=yes, webserver=yes)
  • Python 3.11+

Installation

/opt/netbox/venv/bin/pip install netbox-pdns-connector

Add to /opt/netbox/local_requirements.txt for upgrades:

netbox-pdns-connector

In configuration.py:

PLUGINS = [
    'netbox_dns',
    'netbox_pdns_connector',
]
sudo -u netbox /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py migrate netbox_pdns_connector
sudo systemctl restart netbox netbox-rq
  1. Open Plugins → PowerDNS → Settings
  2. Set primary (and optional secondary) API base URL, e.g. http://dns1.example:8081
  3. Paste the PowerDNS API key (stored encrypted)
  4. Optionally restrict sync to one netbox_dns View
  5. Save, then Live Status → Sync now

The client appends /api/v1. Do not put a trailing slash on /servers/localhost paths (PowerDNS returns 404).

Configuration reference

Setting Description
Primary / secondary URL PowerDNS REST base (http://host:8081)
Server id PowerDNS API server name (usually localhost)
API key Shared secret; Fernet-encrypted at rest
View Limit sync to one netbox_dns view (empty = all)
Sync interval Minutes between automatic RQ runs
Realtime sync Enqueue sync on zone/record save/delete
Dry run Compute push without calling PowerDNS

PowerDNS side tips

  • Restrict webserver-allow-from to your NetBox host
  • Firewall API port (e.g. 8081) accordingly
  • Zones are created as Native with soa_edit / soa_edit_api = NONE so NetBox SOA serials are preserved (PowerDNS DEFAULT would rewrite them to YYYYMMDDNN)
  • For HA, point primary + secondary at both Authoritative nodes and use the same API key if your plugin config has a single key field

Operations

  • Live Status: server reachability, version, zone count, per-zone SOA parity (in sync / drift / unreachable)
  • Zone detail: read-only list of active netbox_dns records + Sync now
  • Edit records only under Plugins → DNS

Troubleshooting

Symptom Likely cause
404 on /servers/localhost/ Trailing slash — fixed in recent releases; upgrade the plugin
Persistent SOA drift Zone still has SOA-EDIT-API=DEFAULT; Sync with 0.1.2+ recreates with NONE
Connection timeout Firewall / webserver-allow-from does not include NetBox

Development

python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
ruff check src tests
pytest -q

License

Apache License 2.0 — see LICENSE.

Metadata

Release files for netbox-pdns-connector 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-pdns-connector 0.1.3
File Size Uploaded Provenance Actions
netbox_pdns_connector-0.1.3.tar.gz 26.3 kB Without provenance Details for netbox_pdns_connector-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netbox-pdns-connector 0.1.3
File Interpreter ABI Platform Actions
netbox_pdns_connector-0.1.3-py3-none-any.whl Python 3 none any Details for netbox_pdns_connector-0.1.3-py3-none-any.whl

Total release size: 54.8 kB

Release files / netbox_pdns_connector-0.1.3.tar.gz

Download URL netbox_pdns_connector-0.1.3.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
22d92615d80b2b3b1fbe41a682d86baeeb9656c148ea6d9975e5d063e8916695
BLAKE2b-256 checksum
How to use checksums
573270a4edaedeb029f1600b502d3fc230ebf433ea186b63ba5bdfcfda014765
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / netbox_pdns_connector-0.1.3-py3-none-any.whl

Download URL netbox_pdns_connector-0.1.3-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93aad1371bd66f533955248fa5ffd9335d867f16150b9f7d2d371f58f4800edc
BLAKE2b-256 checksum
How to use checksums
ba4c1d272001211f072a9fbd2a686323192e099f735774e674a146411a6116c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for netbox-pdns-connector 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page