QueryStatistics returns the DNS query statistics for both the upstream and fallback DNS servers. The returned statistics will be nil until a DNS lookup has been performed. Depending on whether the DNS request was successfully resolved and the upstream mode, the returned statistics consist of: - I
()
| 139 | // |
| 140 | // Both s and any data returned from its methods must not be modified. |
| 141 | func (dctx *DNSContext) QueryStatistics() (s *QueryStatistics) { |
| 142 | return dctx.queryStatistics |
| 143 | } |
| 144 | |
| 145 | // calcFlagsAndSize lazily calculates some values required for Resolve method. |
| 146 | func (dctx *DNSContext) calcFlagsAndSize() { |
no outgoing calls