Skip to main content

Infoblox WAPI to DNS server configuration tool

Project description

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/

Project details


Download files

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

Source Distribution

wapi2nsconf-0.6.0.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

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

wapi2nsconf-0.6.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file wapi2nsconf-0.6.0.tar.gz.

File metadata

  • Download URL: wapi2nsconf-0.6.0.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wapi2nsconf-0.6.0.tar.gz
Algorithm Hash digest
SHA256 5832017f95f12345a44c53ad689222b59eac0e96a02938cfb8f629e3bbe49e5e
MD5 48e6c8b8a62c38b5f54ed9344cf9ed75
BLAKE2b-256 aeed94c832cb290a3bb29f2f74131f24ccf3241853925b0ad6939eff6a304c70

See more details on using hashes here.

Provenance

The following attestation bundles were made for wapi2nsconf-0.6.0.tar.gz:

Publisher: release.yml on kirei/wapi2nsconf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wapi2nsconf-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: wapi2nsconf-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wapi2nsconf-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88ca81c4f66d32c623183bdca796028ed69b9b224bf111cca03a0988c2db852a
MD5 6eaf0869d0a65b01caba1b0f6f0f31f7
BLAKE2b-256 f439c8a3f6dfe959bab742559536423d3cf6b134099b6dda642282829ae920cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for wapi2nsconf-0.6.0-py3-none-any.whl:

Publisher: release.yml on kirei/wapi2nsconf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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