code: func (rule *typeRule) Rewrite(w dns.ResponseWriter, r *dns.Msg) Result {
  	if rule.fromType > 0 && rule.toType > 0 {
  		if r.Question[0].Qtype == rule.fromType {
  			r.Question[0].Qtype = rule.toType
  			return RewriteDone
  		}
  	}
  	return RewriteIgnored
  }
docs: // Rewrite rewrites the the current request.