Install & Compatibility
Where this runs
tested against v20250130 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.104s · 17.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.102s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
domains
✓ import dnstwist
✗ from dnstwist import domains
The 'domains' function is not part of the public API; use the Fuzzer class instead.
Fuzzer
✓ from dnstwist import Fuzzer
Format
✓ from dnstwist import Format
Demonstrates basic usage: instantiate Fuzzer with a domain, generate permutations, and print as a table.
from dnstwist import Fuzzer, Format
# Initialize Fuzzer with a domain name
fuzzer = Fuzzer('example.com')
# Generate permutations
permutations = fuzzer.generate()
print(Format.table(permutations))
dnstwist --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'dnstwist'
Package not installed in the current environment.
fixRun 'pip install dnstwist'
dnstwist: error: unrecognized arguments: --ssdeep
The '--ssdeep' flag was replaced by '--lsh' in version 20230402.
fixReplace '--ssdeep' with '--lsh ssdeep'.
AttributeError: module 'dnstwist' has no attribute 'domains'
The 'domains' function is not a public API; it was removed or never existed.
fixUse the Fuzzer class: 'from dnstwist import Fuzzer'
ImportError: cannot import name 'Fuzzer' from 'dnstwist'
Old version of dnstwist where Fuzzer was not exposed at package level.
fixUpgrade dnstwist to version >=20221011 or import from 'dnstwist.lib.fuzzer'.
Upgrade
Version history
20250130latest on PyPI · released Jan 30, 2025
Audit
Dependencies
dnspythonoptionalDNS resolution; install if not present.
ssdeepoptionalFuzzy hashing for content similarity.
tlsoptionalAlternative fuzzy hashing (TLSH).
geoip2optionalGeolocation of IP addresses.
whoisoptionalWHOIS lookups (external module replaced by internal implementation in 20230918, but still optional for fallback).