Infoblox WAPI to Nameserver
This program creates nameserver configuration files for secondary name servers based on configuration fetched via Infoblox WAPI.
The following nameserver formats are supported:
Development of this software was sponsored by AddPro AB.
Installing
This program is available via PyPI and the latest version may be install using the following command:
pip install wapi2nsconf
Building
This package uses UV for packaging and dependency management. To build a wheel, use:
uv build
Templates
The following default configuration templates are provided:
- bind.conf
- knot.conf
- nsd.conf
- zones.yaml.j2
- zones.json.j2
Configuration
The configuration file is written in YAML. Example configuration can be found below.
WAPI Connection
wapi:
endpoint: https://infoblox.example.com/wapi/v2.5
version: 2.5 # optional (guessed from endpoint URL)
username: username
password: password
check_hostname: True # default True
verify: True # default True
ca_bundle: ca.pem # optional
IPAM Filters
The IPAM filters configures what view to use to find zones. Zones can also be filtered based on name server groups (ns_groups) and external attribute (key/value). There's a logic OR between ns_groups and extattr_key, so a zone is include if it is qualified by any of these options. If the extattr_value is configured, the extattr_key must have this value. If not specified, any value of extattr_key is accepted.
ipam:
view: default
ns_groups:
- "Group1"
- "Group2"
extattr_key: "foo"
extattr_value: "bar"
DNS Hidden Masters
masters:
- ip: 10.0.0.1
tsig: tsig.example.com
Configuration File Output
The output section defines what configuration files to output. Each output is created using a template, output file and an optionally set of variables (defined per template).
output:
- template: knot.conf
filename: knot.conf
variables:
master_base: infoblox
template_id: infoblox
storage: /var/lib/knot/zones
- template: nsd.conf
filename: nsd.conf
variables:
storage_prefix: ""
- template: bind.conf
filename: bind.conf
variables:
master: infoblox
storage_prefix: /var/named/infoblox/
Metadata
Release files for wapi2nsconf 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wapi2nsconf-0.6.1.tar.gz | 36.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wapi2nsconf-0.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.7 kB
Release files / wapi2nsconf-0.6.1.tar.gz
| Download URL | wapi2nsconf-0.6.1.tar.gz |
|---|---|
| Size | 36.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a270759637634051ba3fb282ab262bc6992e26075c3119418209471668d71fd
|
|
BLAKE2b-256 checksum How to use checksums |
b2f1bb8b19ba7b6aad2c1972f72f33a30e9e382c9568695d8e46095c11da3da7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2025.
Transparency logRelease files / wapi2nsconf-0.6.1-py3-none-any.whl
| Download URL | wapi2nsconf-0.6.1-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71cc238dbb38510d8ee3c27e40f4f2cb58ebfcd57b3a6fc6757f18b85c6acad1
|
|
BLAKE2b-256 checksum How to use checksums |
ae628252776455f6721d949cc79f5349fd4e9d93d328068d875df469e3cbc56d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2025.
Transparency log