mirror of
https://github.com/folbricht/routedns.git
synced 2025-12-31 14:40:24 -06:00
17 lines
276 B
Go
17 lines
276 B
Go
package rdns
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/miekg/dns"
|
|
)
|
|
|
|
// QueryTimeoutError is returned when a query times out.
|
|
type QueryTimeoutError struct {
|
|
query *dns.Msg
|
|
}
|
|
|
|
func (e QueryTimeoutError) Error() string {
|
|
return fmt.Sprintf("query for '%s' timed out", qName(e.query))
|
|
}
|