telegraf/plugins/inputs/dns
Marcin Jasion d1785a7f15 renamed plugin to dns_query and value to query_time_ms
small polishings

added more record types - AAAA and ANY
2016-04-08 18:34:45 +02:00
..
README.md renamed plugin to dns_query and value to query_time_ms 2016-04-08 18:34:45 +02:00
dns_query.go renamed plugin to dns_query and value to query_time_ms 2016-04-08 18:34:45 +02:00
dns_query_test.go renamed plugin to dns_query and value to query_time_ms 2016-04-08 18:34:45 +02:00

README.md

DNS Query Input Plugin

The DNS plugin gathers dns query times in miliseconds - like Dig

Configuration:

# Sample Config:
[[inputs.dns_query]]
  ### Domains or subdomains to query
  domains = ["mjasion.pl"] # required

  ### servers to query
  servers = ["8.8.8.8"] # required

  ### Query record type. Posible values: A, CNAME, MX, TXT, NS. Default is "A"
  recordType = "A" # optional

  ### Dns server port. 53 is default
  port = 53 # optional

  ### Query timeout in seconds. Default is 2 seconds
  timeout = 2 # optional

For querying more than one record type make:

[[inputs.dns_query]]
  domains = ["mjasion.pl"]
  servers = ["8.8.8.8", "8.8.4.4"]
  recordType = "A"

[[inputs.dns_query]]
  domains = ["mjasion.pl"]
  servers = ["8.8.8.8", "8.8.4.4"]
  recordType = "MX"

Tags:

  • server
  • domain
  • recordType

Example output:

./telegraf -config telegraf.conf -test -input-filter dns_query -test
> dns,domain=mjasion.pl,record_type=A,server=8.8.8.8 query_time_ms=36.327025 1455548824989943491