}{
{
config.DNSProbe{
- QueryName: "example.com",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
}, true,
},
{
config.DNSProbe{
- QueryName: "example.com",
- ValidRcodes: []string{"SERVFAIL", "NXDOMAIN"},
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
+ ValidRcodes: []string{"SERVFAIL", "NXDOMAIN"},
}, false,
},
{
config.DNSProbe{
- QueryName: "example.com",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
ValidateAnswer: config.DNSRRValidator{
FailIfMatchesRegexp: []string{".*7200.*"},
FailIfNotMatchesRegexp: []string{".*3600.*"},
},
{
config.DNSProbe{
- QueryName: "example.com",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
ValidateAuthority: config.DNSRRValidator{
FailIfMatchesRegexp: []string{".*7200.*"},
},
},
{
config.DNSProbe{
- QueryName: "example.com",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
ValidateAdditional: config.DNSRRValidator{
FailIfNotMatchesRegexp: []string{".*3600.*"},
},
}{
{
config.DNSProbe{
- QueryName: "example.com",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
}, true,
},
{
config.DNSProbe{
- QueryName: "example.com",
- ValidRcodes: []string{"SERVFAIL", "NXDOMAIN"},
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
+ ValidRcodes: []string{"SERVFAIL", "NXDOMAIN"},
}, false,
},
{
config.DNSProbe{
- QueryName: "example.com",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
ValidateAnswer: config.DNSRRValidator{
FailIfMatchesRegexp: []string{".*3600.*"},
FailIfNotMatchesRegexp: []string{".*3600.*"},
},
{
config.DNSProbe{
- QueryName: "example.com",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
ValidateAnswer: config.DNSRRValidator{
FailIfMatchesRegexp: []string{".*7200.*"},
FailIfNotMatchesRegexp: []string{".*7200.*"},
},
{
config.DNSProbe{
- QueryName: "example.com",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
ValidateAuthority: config.DNSRRValidator{
FailIfNotMatchesRegexp: []string{"ns.*.isp.net"},
},
},
{
config.DNSProbe{
- QueryName: "example.com",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
ValidateAdditional: config.DNSRRValidator{
FailIfNotMatchesRegexp: []string{"^ns.*.isp"},
},
},
{
config.DNSProbe{
- QueryName: "example.com",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
ValidateAdditional: config.DNSRRValidator{
FailIfMatchesRegexp: []string{"^ns.*.isp"},
},
}{
{
config.DNSProbe{
- QueryName: "example.com",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
}, false,
},
{
config.DNSProbe{
- QueryName: "example.com",
- ValidRcodes: []string{"SERVFAIL", "NXDOMAIN"},
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
+ ValidRcodes: []string{"SERVFAIL", "NXDOMAIN"},
}, true,
},
{
config.DNSProbe{
- QueryName: "example.com",
- QueryType: "NOT_A_VALID_QUERY_TYPE",
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
+ QueryType: "NOT_A_VALID_QUERY_TYPE",
}, false,
},
{
config.DNSProbe{
- QueryName: "example.com",
- ValidRcodes: []string{"NOT_A_VALID_RCODE"},
+ PreferredIPProtocol: "ipv4",
+ QueryName: "example.com",
+ ValidRcodes: []string{"NOT_A_VALID_RCODE"},
}, false,
},
}