DNS utilities: SPF crawler → ipset updater, Microsoft 365 21Vianet IP sync, mDNS responder diagnostics
pip install somestuff-dnsstuff Copy PIP instructions
DNS and network diagnostics for mail relays and LANs: an SPF crawler that feeds a Linux ipset, a Microsoft 365 21Vianet IP-range updater, and an mDNS resolver that shows which host actually answered.
Logging (loguru, with an intercept for stdlib logging from dnspython, pyroute2, urllib) and the startup banner are shared via somestuff.dnsstuff.
pip install somestuff-dnsstuff somestuff is a PEP 420 namespace; the package is imported as somestuff.dnsstuff and shares the namespace with the other somestuff-* distributions.
Console scripts and module invocation are equivalent:
spf-ipset-updater example.com mail.example.net --ipset-name smtpallowlist python3 -m somestuff.dnsstuff.spf_ipset_updater example.com --dry-run -v update-21vianet-ips --ipset-name-all 21vianet_exchange --ipset-name-smtp 21vianet_smtp python3 -m somestuff.dnsstuff.update_21vianet_ips --force --dry-run mdns-who printer.local python3 -m somestuff.dnsstuff.mdns_who printer --timeout 3 --unicast --iface 192.0.2.5 Common flags: --dry-run populates the ipset but skips the atomic swap, --no-comment disables the ipset comment extension, -v enables DEBUG logging. update-21vianet-ips --help lists the cache directory and API timeout options.
Cron example for the 21Vianet updater (daily at 03:00):
0 3 * * * update-21vianet-ips 2>&1 | logger -t 21vianet Library from somestuff.dnsstuff import configure_logging from somestuff.dnsstuff.spf_ipset_updater import get_spf_records configure_logging(verbose=True) Privileges spf-ipset-updater and update-21vianet-ips modify kernel ipsets over netlink and need CAP_NET_ADMIN (in practice: root). mdns-who binds a UDP socket on port 5353 and joins the mDNS multicast group; on most systems this works unprivileged unless another mDNS daemon holds the port exclusively. Notes Requires: dnspython, pyroute2, loguru, tabulate. Linux only (netlink ipsets). Licensed under the LGPL, see LICENSE.md in the repository root. Project links Homepage Issues Repository Key dates PyPI data Data sourced directly from PyPI's database. Released: Nov 1, 2026 Latest release 1 maintainer PyPI data Data sourced directly from PyPI's database. vroomfondel Credits Author: Henning Thieß
GNU Lesser General Public License v3 (LGPLv3)
21vianet allowlist dns ipset mdns netfilter pyroute2 smtp spf
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




