| 1 |
package dns |
| 2 |
|
| 3 |
// Error represents a DNS error. |
| 4 |
type Error struct { |
| 5 |
err string |
| 6 |
} |
| 7 |
|
| 8 |
func (e *Error) Error() string { return "dns: " + e.err } |
| 9 |
|
| 10 |
var ( |
| 11 |
ErrID = &Error{err: "ID mismatch"} // ErrID signals a mismatch with the sent message ID and the one returned. |
| 12 |
ErrAlg = &Error{err: "bad algorithm"} // ErrAlg indicates an error with the (DNSSEC) algorithm. |
| 13 |
ErrSig = &Error{err: "bad signature"} // ErrSig indicates that a signature can not be cryptographically validated. |
| 14 |
ErrKeyAlg = &Error{err: "bad key algorithm"} // ErrKeyAlg indicates that the algorithm in the key is not valid. |
| 15 |
ErrKey = &Error{err: "bad key"} |
| 16 |
ErrKeySize = &Error{err: "bad key size"} |
| 17 |
ErrRcode = &Error{err: "bad rcode"} |
| 18 |
ErrTime = &Error{err: "bad time"} // ErrTime indicates a timing error in TSIG authentication. |
| 19 |
ErrNoTSIG = &Error{err: "no TSIG signature"} |
| 20 |
ErrNoSIG0 = &Error{err: "no SIG(0) signature"} |
| 21 |
ErrSOA = &Error{err: "no SOA"} // ErrSOA indicates that no SOA RR was seen when doing zone transfers. |
| 22 |
) |