- Update to version 2.0.0 * Add support for DNSSEC * Add -F to display flags for each response (dnsping) * Display full response in verbose mode (dnsping) * Add DoT (DNS over TLS) support (dnsping, dnseval) * Add DoH (DNS over HTTPS) support (dnsping, dnseval) * Add TCP support * Refactor and PEP8 cleanup * Do not use system resolver when not needed * Add support for user defined source IP address * Add user-specified destination port (-p/--port) * Improve error handling * Display last response code for each entry * Rework custom socket and custom TTL support * Rework time calculation logic to eliminate an extra DNS request that was just sent for timing (dnstraceroute) * Update docs (output samples, use cases, etc) * Use proper terminology (in code) to reduce confusion OBS-URL: https://build.opensuse.org/request/show/882918 OBS-URL: https://build.opensuse.org/package/show/network/dnsdiag?expand=0&rev=8
95 lines
3.3 KiB
RPMSpec
95 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package dnsdiag
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
# Copyright (c) 2017-2021, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_without test
|
|
Name: dnsdiag
|
|
Version: 2.0.0
|
|
Release: 0
|
|
Summary: DNS request auditing toolset
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://dnsdiag.org/
|
|
Source: https://files.pythonhosted.org/packages/source/d/dnsdiag/dnsdiag-%{version}.tar.gz
|
|
Source1: dnseval.1
|
|
Source2: dnsping.1
|
|
Source3: dnstraceroute.1
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python3-setuptools
|
|
Requires: python3-cymruwhois >= 1.6
|
|
Requires: python3-dnspython >= 1.15.0
|
|
Requires: python3-setuptools
|
|
Provides: python3-dnsdiag
|
|
Obsoletes: python3-dnsdiag
|
|
BuildArch: noarch
|
|
%if %{with test}
|
|
BuildRequires: python3-cymruwhois >= 1.6
|
|
BuildRequires: python3-dnspython >= 1.15.0
|
|
%endif
|
|
|
|
%description
|
|
A set of tools to perform basic audits on DNS requests and responses
|
|
to make sure DNS is working as expected. Dnsping can be used to
|
|
measure the response time of a given DNS server for arbitrary
|
|
requests. Just like a traditional ping utility, it provides similar
|
|
functionality for DNS requests.
|
|
|
|
Dnstraceroute can be used to trace the path a DNS request takes to
|
|
its destination. Its purpose is to detect whether a request is
|
|
redirected or hijacked. This can be done by comparing different DNS
|
|
queries being sent to the same DNS server using dnstraceroute and
|
|
observe if there is any difference between the path.
|
|
|
|
dnseval evaluates multiple DNS resolvers and helps choosing the best
|
|
DNS server for the network. It is recommended to use one's own DNS
|
|
resolver as opposed to a third-party DNS server. dnseval can compare
|
|
different DNS servers from a performance (latency) and reliability
|
|
(loss) point of view for when DNS forwarders need to be used instead
|
|
of a resolver.
|
|
|
|
%prep
|
|
%setup -q -n dnsdiag-%{version}
|
|
|
|
%build
|
|
%python3_build
|
|
|
|
%install
|
|
%python3_install
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
|
mv %{buildroot}%{_bindir}/dnseval.py %{buildroot}%{_bindir}/dnseval
|
|
mv %{buildroot}%{_bindir}/dnstraceroute.py %{buildroot}%{_bindir}/dnstraceroute
|
|
mv %{buildroot}%{_bindir}/dnsping.py %{buildroot}%{_bindir}/dnsping
|
|
install -d -m0755 %{buildroot}%{_mandir}/man1/
|
|
install -m0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
|
|
install -m0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/
|
|
install -m0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_bindir}/dnseval
|
|
%{_bindir}/dnstraceroute
|
|
%{_bindir}/dnsping
|
|
%{_mandir}/man1/dnseval.1%{?ext_man}
|
|
%{_mandir}/man1/dnstraceroute.1%{?ext_man}
|
|
%{_mandir}/man1/dnsping.1%{?ext_man}
|
|
%{python3_sitelib}/*
|
|
|
|
%changelog
|