Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate DNS server #55

Open
ghallford opened this issue Oct 4, 2021 · 1 comment
Open

Alternate DNS server #55

ghallford opened this issue Oct 4, 2021 · 1 comment

Comments

@ghallford
Copy link

ghallford commented Oct 4, 2021

Hi,

I am using this docker on an Unraid server. I can't find a way to have it start with the --dns.nameserver option to specify a different DNS server. Is there a way to do that via the config.yml or can I add that as a feature request if not? Thanks.

@soapiestwaffles
Copy link
Contributor

I know this is an old issue now, but just in case you haven't found out your answer yet:

there is a way to specify a different DNS server in the config.yml! It is dns.nameserver .

See example:

# ping_exporter/config.yml
targets:
  - "google.com"
  - "youtube.com"
  - "speedtest.net"
dns:
  refresh: 30m
  nameserver: "10.124.0.3"
ping:
  interval: 5s
  timeout: 2s
  history-size: 100
  payload-size: 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants