// DefaultDNSProbe set default value for DNSProbe
DefaultDNSProbe = DNSProbe{
IPProtocolFallback: true,
- RecursionDesired: true,
+ Recursion: true,
}
)
QueryClass string `yaml:"query_class,omitempty"` // Defaults to IN.
QueryName string `yaml:"query_name,omitempty"`
QueryType string `yaml:"query_type,omitempty"` // Defaults to ANY.
- RecursionDesired bool `yaml:"recursion_desired,omitempty"` // Defaults to true.
+ Recursion bool `yaml:"recursion_desired,omitempty"` // Defaults to true.
ValidRcodes []string `yaml:"valid_rcodes,omitempty"` // Defaults to NOERROR.
ValidateAnswer DNSRRValidator `yaml:"validate_answer_rrs,omitempty"`
ValidateAuthority DNSRRValidator `yaml:"validate_authority_rrs,omitempty"`
IPProtocol: "ip4",
IPProtocolFallback: true,
QueryName: "example.com",
- RecursionDesired: true,
+ Recursion: true,
}, true,
},
{
IPProtocol: "ip4",
IPProtocolFallback: true,
QueryName: "example.com",
- RecursionDesired: true,
+ Recursion: true,
ValidRcodes: []string{"SERVFAIL", "NXDOMAIN"},
}, false,
},
IPProtocol: "ip4",
IPProtocolFallback: true,
QueryName: "example.com",
- RecursionDesired: true,
+ Recursion: true,
ValidateAnswer: config.DNSRRValidator{
FailIfMatchesRegexp: []string{".*7200.*"},
FailIfNotMatchesRegexp: []string{".*3600.*"},
IPProtocol: "ip4",
IPProtocolFallback: true,
QueryName: "example.com",
- RecursionDesired: true,
+ Recursion: true,
ValidateAuthority: config.DNSRRValidator{
FailIfMatchesRegexp: []string{".*7200.*"},
},
IPProtocol: "ip4",
IPProtocolFallback: true,
QueryName: "example.com",
- RecursionDesired: true,
+ Recursion: true,
ValidateAdditional: config.DNSRRValidator{
FailIfNotMatchesRegexp: []string{".*3600.*"},
},
IPProtocol: "ip4",
IPProtocolFallback: true,
QueryName: "example.com",
- RecursionDesired: false,
+ Recursion: false,
}, false,
},
}
"probe_dns_authority_rrs": 0,
"probe_dns_additional_rrs": 0,
}
- if !test.Probe.RecursionDesired {
+ if !test.Probe.Recursion {
expectedResults["probe_dns_answer_rrs"] = 0
}
checkRegistryResults(expectedResults, mfs, t)
QueryName: "example.com",
TransportProtocol: protocol,
IPProtocol: "ip6",
- RecursionDesired: true,
+ Recursion: true,
},
}
registry := prometheus.NewRegistry()
Timeout: time.Second,
DNS: config.DNSProbe{
QueryName: "example.com",
- RecursionDesired: true,
+ Recursion: true,
TransportProtocol: protocol,
IPProtocol: "ip4",
},
Timeout: time.Second,
DNS: config.DNSProbe{
QueryName: "example.com",
- RecursionDesired: true,
+ Recursion: true,
TransportProtocol: protocol,
},
}
module = config.Module{
Timeout: time.Second,
DNS: config.DNSProbe{
- QueryName: "example.com",
- RecursionDesired: true,
+ QueryName: "example.com",
+ Recursion: true,
},
}
registry = prometheus.NewRegistry()
IPProtocol: "ip4",
IPProtocolFallback: true,
QueryName: "example.com",
- RecursionDesired: true,
+ Recursion: true,
},
}
registry := prometheus.NewRegistry()