Fixed a typo
This commit is contained in:
parent
6a22631c4f
commit
c7f7e6cca8
@ -28,7 +28,7 @@ func (r *resolver) lookup(host string, qtype uint16) ([]dns.RR, error) {
|
|||||||
return []dns.RR{}, fmt.Errorf("Error querying the server [%v]", err)
|
return []dns.RR{}, fmt.Errorf("Error querying the server [%v]", err)
|
||||||
}
|
}
|
||||||
if in != nil && in.Rcode != dns.RcodeSuccess {
|
if in != nil && in.Rcode != dns.RcodeSuccess {
|
||||||
return []dns.RR{}, fmt.Errorf("Recieved error from the server [%s]", dns.RcodeToString[in.Rcode])
|
return []dns.RR{}, fmt.Errorf("Received error from the server [%s]", dns.RcodeToString[in.Rcode])
|
||||||
}
|
}
|
||||||
|
|
||||||
return in.Answer, nil
|
return in.Answer, nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user