checker: Ensure DNS is also accessible over TCP
This commit is contained in:
parent
94ed539e01
commit
f70743d659
2 changed files with 27 additions and 5 deletions
|
|
@ -134,7 +134,7 @@ func studentChecker(std *adlin.Student, also_check_matrix bool, offline bool) {
|
|||
snicheck1_tested := false
|
||||
|
||||
// Check DNS
|
||||
if addr, err := check_dns(std.MyDelegatedDomain(), dnsIP); err == nil {
|
||||
if addr, err := check_dns_both(std.MyDelegatedDomain(), dnsIP); err == nil {
|
||||
if addr == nil {
|
||||
dnsAt := ""
|
||||
if glueErr != nil {
|
||||
|
|
@ -267,7 +267,7 @@ func studentChecker(std *adlin.Student, also_check_matrix bool, offline bool) {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
if errreg := std.RegisterChallengeError(CheckMap[tunnel_version][DNSDelegation], fmt.Errorf("dig @%s %s: %w", dnsIP, std.MyDelegatedDomain(), err)); errreg != nil {
|
||||
if errreg := std.RegisterChallengeError(CheckMap[tunnel_version][DNSDelegation], err); errreg != nil {
|
||||
log.Printf("Unable to register challenge error for %s: %s\n", std.Login, errreg)
|
||||
}
|
||||
if verbose {
|
||||
|
|
@ -311,7 +311,7 @@ func studentChecker(std *adlin.Student, also_check_matrix bool, offline bool) {
|
|||
}
|
||||
|
||||
// Check DNS for association
|
||||
if addr, err := check_dns(std.MyAssociatedDomain(), DEFAULT_RESOLVER); err == nil {
|
||||
if addr, err := check_dns_udp(std.MyAssociatedDomain(), DEFAULT_RESOLVER); err == nil {
|
||||
// Check HTTP on delegated domain
|
||||
if err := check_http(addr.String(), std.MyAssociatedDomain()); err == nil {
|
||||
if verbose {
|
||||
|
|
|
|||
Reference in a new issue