Codebase list dnsviz / f50724e
Merge tag 'upstream/0.9.3' into debian/sid Upstream version 0.9.3 Robert Edmonds 3 years ago
12 changed file(s) with 31 addition(s) and 27 deletion(s). Raw diff Collapse all Expand all
00 Metadata-Version: 1.1
11 Name: dnsviz
2 Version: 0.9.2
2 Version: 0.9.3
33 Summary: DNS analysis and visualization tool suite
44 Home-page: https://github.com/dnsviz/dnsviz/
55 Author: Casey Deccio
00 Name: dnsviz
1 Version: 0.9.2
1 Version: 0.9.3
22 Release: 1%{?dist}
33 Summary: Tools for analyzing and visualizing DNS and DNSSEC behavior
44
5757 %{_mandir}/man1/%{name}-query.1*
5858
5959 %changelog
60 * Thu Mar 11 2021 Casey Deccio
61 0.9.3 release
6062 * Fri Feb 5 2021 Casey Deccio
6163 0.9.2 release
6264 * Tue Jan 19 2021 Casey Deccio
374374 def handle(self, response_wire, response, response_time):
375375 timeouts = self._get_num_timeouts(response)
376376 if not self._params['tcp'] and timeouts >= self._timeouts and self._request.payload > self._reduced_payload:
377 self._request.payload = self._reduced_payload
377 self._request.use_edns(self._request.edns, self._request.ednsflags,
378 self._reduced_payload, options=self._request.options)
378379 return DNSQueryRetryAttempt(response_time, RETRY_CAUSE_TIMEOUT, None, RETRY_ACTION_CHANGE_UDP_MAX_PAYLOAD, self._reduced_payload)
379380
380381 class ClearEDNSFlagOnTimeoutHandler(DNSResponseHandler):
411412
412413 def handle(self, response_wire, response, response_time):
413414 timeouts = self._get_num_timeouts(response)
414 try:
415 if not self._params['tcp'] and timeouts >= self._timeouts and self._request.options:
415416 opt = self._request.options[0]
416 except IndexError:
417 opt = None
418 if not self._params['tcp'] and timeouts >= self._timeouts and opt is not None:
419 self._request.options.remove(opt)
417 self._request.use_edns(self._request.edns, self._request.ednsflags,
418 self._request.payload, options=self._request.options[1:])
420419 return DNSQueryRetryAttempt(response_time, RETRY_CAUSE_TIMEOUT, None, RETRY_ACTION_REMOVE_EDNS_OPTION, opt.otype)
421420
422421 class DisableEDNSOnTimeoutHandler(DNSResponseHandler):
463462 self._rcode = rcode
464463
465464 def handle(self, response_wire, response, response_time):
466 try:
465 if isinstance(response, dns.message.Message) and response.rcode() == self._rcode and self._request.options:
467466 opt = self._request.options[0]
468 except IndexError:
469 opt = None
470 if isinstance(response, dns.message.Message) and response.rcode() == self._rcode and opt is not None:
471 self._request.options.remove(opt)
467 self._request.use_edns(self._request.edns, self._request.ednsflags,
468 self._request.payload, options=self._request.options[1:])
472469 return DNSQueryRetryAttempt(response_time, RETRY_CAUSE_RCODE, response.rcode(), RETRY_ACTION_REMOVE_EDNS_OPTION, opt.otype)
473470
474471 class AddServerCookieOnBADCOOKIE(DNSResponseHandler):
607604 if timeouts >= self._initial_timeouts:
608605 self._lower_bound = self._reduced_payload
609606 self._upper_bound = self._request.payload - 1
610 self._request.payload = self._reduced_payload
607 self._request.use_edns(self._request.edns, self._request.ednsflags,
608 self._reduced_payload, options=self._request.options)
611609 self._state = self.REDUCED_PAYLOAD
612610 return DNSQueryRetryAttempt(response_time, RETRY_CAUSE_TIMEOUT, None, RETRY_ACTION_CHANGE_UDP_MAX_PAYLOAD, self._reduced_payload)
613611
632630 #XXX this is cheating because we're not reporting the change to UDP
633631 self._params['tcp'] = False
634632 payload = response_len - 1
635 self._request.payload = payload
633 self._request.use_edns(self._request.edns, self._request.ednsflags,
634 payload, options=self._request.options)
636635 self._state = self.TCP_MINUS_ONE
637636 return DNSQueryRetryAttempt(response_time, RETRY_CAUSE_DIAGNOSTIC, response_len, RETRY_ACTION_CHANGE_UDP_MAX_PAYLOAD, payload)
638637
640639 if is_timeout:
641640 self._upper_bound = self._request.payload - 1
642641 payload = self._lower_bound + (self._upper_bound + 1 - self._lower_bound)//2
643 self._request.payload = payload
642 self._request.use_edns(self._request.edns, self._request.ednsflags,
643 payload, options=self._request.options)
644644 self._state = self.PICKLE
645645 return DNSQueryRetryAttempt(response_time, RETRY_CAUSE_TIMEOUT, None, RETRY_ACTION_CHANGE_UDP_MAX_PAYLOAD, payload)
646646 # if the size of the message is less than the watermark, then perhaps we were rate limited
674674 elif is_timeout:
675675 self._upper_bound = self._request.payload - 1
676676 payload = self._lower_bound + (self._upper_bound + 1 - self._lower_bound)//2
677 self._request.payload = payload
677 self._request.use_edns(self._request.edns, self._request.ednsflags,
678 payload, options=self._request.options)
678679 return DNSQueryRetryAttempt(response_time, RETRY_CAUSE_TIMEOUT, None, RETRY_ACTION_CHANGE_UDP_MAX_PAYLOAD, payload)
679680 # if the size of the message is less than the watermark, then perhaps we were rate limited
680681 elif response_len < self._water_mark:
690691 elif is_valid:
691692 self._lower_bound = self._request.payload
692693 payload = self._lower_bound + (self._upper_bound + 1 - self._lower_bound)//2
693 self._request.payload = payload
694 self._request.use_edns(self._request.edns, self._request.ednsflags,
695 payload, options=self._request.options)
694696 return DNSQueryRetryAttempt(response_time, RETRY_CAUSE_DIAGNOSTIC, response_len, RETRY_ACTION_CHANGE_UDP_MAX_PAYLOAD, payload)
695697
696698 elif self._state == self.TCP_FINAL:
811811
812812 def init_req(self):
813813 data = self._post_data()
814 self.msg_send = codecs.encode('POST %s HTTP/1.1\r\nHost: %s\r\nUser-Agent: DNSViz/0.9.2\r\nAccept: application/json\r\n%sContent-Length: %d\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n%s' % (self.path, self.host, self._authentication_header(), len(data), data), 'latin1')
814 self.msg_send = codecs.encode('POST %s HTTP/1.1\r\nHost: %s\r\nUser-Agent: DNSViz/0.9.3\r\nAccept: application/json\r\n%sContent-Length: %d\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n%s' % (self.path, self.host, self._authentication_header(), len(data), data), 'latin1')
815815 self.msg_send_len = len(self.msg_send)
816816 self.msg_send_index = 0
817817
00 Metadata-Version: 1.1
11 Name: dnsviz
2 Version: 0.9.2
2 Version: 0.9.3
33 Summary: DNS analysis and visualization tool suite
44 Home-page: https://github.com/dnsviz/dnsviz/
55 Author: Casey Deccio
1919 .\" You should have received a copy of the GNU General Public License along
2020 .\" with DNSViz. If not, see <http://www.gnu.org/licenses/>.
2121 .\"
22 .TH dnsviz-probe 1 "5 Feb 2021" "0.9.2"
22 .TH dnsviz-probe 1 "11 Mar 2021" "0.9.3"
2323 .SH NAME
2424 dnsviz-graph \- graph the assessment of diagnostic DNS queries
2525 .SH SYNOPSIS
1919 .\" You should have received a copy of the GNU General Public License along
2020 .\" with DNSViz. If not, see <http://www.gnu.org/licenses/>.
2121 .\"
22 .TH dnsviz-grok 1 "5 Feb 2021" "0.9.2"
22 .TH dnsviz-grok 1 "11 Mar 2021" "0.9.3"
2323 .SH NAME
2424 dnsviz-grok \- assess diagnostic DNS queries
2525 .SH SYNOPSIS
1919 .\" You should have received a copy of the GNU General Public License along
2020 .\" with DNSViz. If not, see <http://www.gnu.org/licenses/>.
2121 .\"
22 .TH dnsviz-print 1 "5 Feb 2021" "0.9.2"
22 .TH dnsviz-print 1 "11 Mar 2021" "0.9.3"
2323 .SH NAME
2424 dnsviz-print \- print the assessment of diagnostic DNS queries
2525 .SH SYNOPSIS
1919 .\" You should have received a copy of the GNU General Public License along
2020 .\" with DNSViz. If not, see <http://www.gnu.org/licenses/>.
2121 .\"
22 .TH dnsviz-probe 1 "5 Feb 2021" "0.9.2"
22 .TH dnsviz-probe 1 "11 Mar 2021" "0.9.3"
2323 .SH NAME
2424 dnsviz-probe \- issue diagnostic DNS queries
2525 .SH SYNOPSIS
1919 .\" You should have received a copy of the GNU General Public License along
2020 .\" with DNSViz. If not, see <http://www.gnu.org/licenses/>.
2121 .\"
22 .TH dnsviz-query 1 "5 Feb 2021" "0.9.2"
22 .TH dnsviz-query 1 "11 Mar 2021" "0.9.3"
2323 .SH NAME
2424 dnsviz-query \- assess a DNS query
2525 .SH SYNOPSIS
1919 .\" You should have received a copy of the GNU General Public License along
2020 .\" with DNSViz. If not, see <http://www.gnu.org/licenses/>.
2121 .\"
22 .TH dnsviz 1 "5 Feb 2021" "0.9.2"
22 .TH dnsviz 1 "11 Mar 2021" "0.9.3"
2323 .SH NAME
2424 dnsviz \- issue and assess diagnostic DNS queries
2525 .SH SYNOPSIS
119119
120120 create_config('')
121121 setup(name='dnsviz',
122 version='0.9.2',
122 version='0.9.3',
123123 author='Casey Deccio',
124124 author_email='casey@deccio.net',
125125 url='https://github.com/dnsviz/dnsviz/',