Deployment
The dnsbl-exporter can be deployed as a stand-alone binary, container or on Kubernetes using Helm.
Standalone binary
Releases are available for Mac, Linux and FreeBSD.
- Go to release and download a release for your platform.
- Get
rbls.iniand put it next to the binary. - Get
targets.ini, and customize. Or use the defaults. ./dnsbl-exporter
Go to http://127.0.0.1:9211/ in your browser.
As option you can configure exporter to run as systemd service.
Container
Docker/OCI images are available in the container registry:
$ docker pull ghcr.io/luzilla/dnsbl_exporter:vX.Y.Z
...
Please note: The
latestis not provided. Pick an explicit version.
The images expect target.ini and rbls.ini in the following location:
/
Either start the container and supply the contents, or build your own image:
docker run \
--rm \
-e DNSBL_EXP_RESOLVER=your.resolver:53 \
-p 9211:9211 \
-v ./conf:/etc/dnsbl-exporter \
ghcr.io/luzilla/dnsbl_exporter:vA.B.C
FROM ghcr.io/luzilla/dnsbl_exporter:vA.B.C
ADD my-target.ini /target.ini
ADD my-rbls.ini /rbls.ini
Helm
Additionally, a helm chart is provided to run the dnsbl-exporter on Kubernetes.
To get started quickly, an unbound container is installed into the pod alongside the exporter.
This unbound acts as a local DNS server to send queries to. You may turn this off with unbound.enabled=false and provide your own resolver (via config.resolver: an.ip.address:port).
To configure the chart, copy chart/values.yaml to values.local.yaml.
Another useful option to add our chart as dependency to your own chart:
dependencies:
- name: dnsbl-exporter
repository: oci://ghcr.io/luzilla/charts
version: 0.1.0
The sources for the helm chart are in chart, to install it, you can inspect the Chart.yaml for the version, check the helm chart repository or check out artifact hub.
The following command creates a dnsbl-exporter release which is installed into a namespace called my-namespace:
helm upgrade --install \
--namespace my-namespace \
-f ./chart/values.yaml \
-f ./values.local.yaml \
dnsbl-exporter oci://ghcr.io/luzilla/charts/dnsbl-exporter --version 0.1.0