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.1.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.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wapi2nsconf-0.6.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6a270759637634051ba3fb282ab262bc6992e26075c3119418209471668d71fd
MD5 8e8ac09da962a117420dbe0855984bb4
BLAKE2b-256 b2f1bb8b19ba7b6aad2c1972f72f33a30e9e382c9568695d8e46095c11da3da7

See more details on using hashes here.

Provenance

The following attestation bundles were made for wapi2nsconf-0.6.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: wapi2nsconf-0.6.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71cc238dbb38510d8ee3c27e40f4f2cb58ebfcd57b3a6fc6757f18b85c6acad1
MD5 7f04c730f11cf8336568d8ef1dea2eba
BLAKE2b-256 ae628252776455f6721d949cc79f5349fd4e9d93d328068d875df469e3cbc56d

See more details on using hashes here.

Provenance

The following attestation bundles were made for wapi2nsconf-0.6.1-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