You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to change the DNS resolver mode of blackbox_exporter to make it possible to work with local dns caches like systemd-resolved or nscd because these are the tool I have available in my environment:
export GODEBUG=netdns=go # force pure Go resolver
export GODEBUG=netdns=cgo # force cgo resolver
In my blackbox_exporter config I have around 100 targets configured which is not that big I think.
I ran probes every 15s - and I did every 5s before - that is a lot of DNS traffic I would like to avoid.
Instead of configuring a complete DNS Server a DNS cache would besufficient.
From the google discussion I think I understood that there is a flag which needs to be set before compiling and then it should be possible to switch between the modes if needed.
The text was updated successfully, but these errors were encountered:
Host operating system: output of
uname -a
Linux ubiquiti 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 GNU/Linux
blackbox_exporter version: output of
blackbox_exporter --version
blackbox_exporter, version 0.25.0 (branch: HEAD, revision: ef3ff4f)
build user: root@47d5b0d99f18
build date: 20240409-12:58:39
go version: go1.22.2
platform: linux/amd64
tags: unknown
Based on this discussion it seems to not be possible to change the default DNS resolver mode:
https://groups.google.com/g/prometheus-users/c/OkYdlviBGUI
I would like to change the DNS resolver mode of blackbox_exporter to make it possible to work with local dns caches like systemd-resolved or nscd because these are the tool I have available in my environment:
In my blackbox_exporter config I have around 100 targets configured which is not that big I think.
I ran probes every 15s - and I did every 5s before - that is a lot of DNS traffic I would like to avoid.
Instead of configuring a complete DNS Server a DNS cache would besufficient.
From the google discussion I think I understood that there is a flag which needs to be set before compiling and then it should be possible to switch between the modes if needed.
The text was updated successfully, but these errors were encountered: