Fixed a typo

This commit is contained in:
Joona Hoikkala 2016-11-29 01:14:08 +02:00
parent 6a22631c4f
commit c7f7e6cca8
No known key found for this signature in database
GPG Key ID: C14AAE0F5ADCB854

View File

@ -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)
}
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