Sign in

Mod for netbox

NetBox DNS

This mod adds the NetBox DNS plugin (PyPI: netbox-plugin-dns) to a netbox container.

arch
amd64
built

Use it#

Set DOCKER_MODS on the netbox container and recreate it. The mod is pulled on every start; several mods are separated with |.

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:netbox-dns

:netbox-dns always gets the newest build. To stay on this one, pin its tag:

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:netbox-dns-73df7f6
services:
  netbox:
    image: ghcr.io/linuxserver-playground/netbox:latest
    environment:
      - DOCKER_MODS=ghcr.io/linuxserver-playground/mods:netbox-dns

Details#

Update your configuration.py to include the plugin

...
# Enable installed plugins. Add the name of each plugin to the list.
PLUGINS = ['netbox_dns']

...

On the next container start, the mod adds netbox-plugin-dns to the pip install list before NetBox runs its database migrations, and the plugin’s tables will be created automatically.

Removal

Before removing DOCKER_MODS, remove 'netbox_dns' from the PLUGINS list in your configuration.py. Otherwise NetBox will fail to start because the plugin package will no longer be installed but is still referenced in the configuration.

Community project

Improve this mod, or make your own

Mods are how LinuxServer images grow without getting heavier: a Dockerfile, a few scripts and a mod.yml. If this one is missing something, or you need one like it for another image, an AI agent in our harness can build and test it with you.

Ask your agent

  • The netbox-dns mod <what is wrong>. Fix it, test it and draft the PR.
  • Make a mod like netbox-dns for <another image>, and test it.

Making a mod Every way to help Get the harness (opens in a new tab)

Source: netbox-dns branch (opens in a new tab). Every mod