[dns] Allow to specify query Class (#635)
authorBaptiste Courtois <baptiste.courtois@gmail.com>
Sun, 14 Jun 2020 10:35:33 +0000 (12:35 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Jun 2020 10:35:33 +0000 (11:35 +0100)
commita2898885cccaa19c3f135bc8007343ccf9f7353c
tree35afdafc39d882a375f5c377ab2965137554d94a
parenta8a525c871d1363c69f82afadcf5ead34a2d77b5
[dns] Allow to specify query Class (#635)

* [dns] validate query_class and query_type config values
This allows to catch simple config errors earlier.

Signed-off-by: Baptiste Courtois <b.courtois@criteo.com>
CONFIGURATION.md
config/config.go
config/config_test.go
config/testdata/invalid-dns-class.yml [new file with mode: 0644]
config/testdata/invalid-dns-type.yml [new file with mode: 0644]
prober/dns.go
prober/dns_test.go