Given a domain nrb.org.uk (made up for testing), I get the following nrfb.org.uk in the output, but not nrfb.co.uk, nrfb.plc.uk, etc...which I would expect in this particular scenario, given the .uk rules outlined above.
Here is the piece of code I used to generate the outputs in case it helps:
from dnstwist import Fuzzer, UrlParser
domain = 'nrb.org.uk'
try:
url = UrlParser(domain)
except Exception as error:
print(f"invalid domain | domain: {domain}")
fuzz = Fuzzer(url.domain, dictionary=[], tld_dictionary=[])
fuzz.generate()
domains = fuzz.domains
for domain in domains:
print(domain['domain'])
Is this use case addressed somehow by dnstwist? If yes, how could it be achieved?
I understand this is quite specific, and if it were implemented, it would have to be extended to other TLDs that have a limited set of SLDs, as .uk does, which would increase the complexity of the underlying logic.
I would be happy to work on a PR to cover this scenario, if not covered already.
Hello,
There is a specific use case that I am unsure whether it is covered by
dnstwist
. Let me provide all the relevant details for context.Context
Domains from the
.uk
TLD can have any of the following second-level domains (SLDs).co.uk
Commercial entities and purposesltd.uk
Private limited companiesme.uk
Personal namesnet.uk
Internet Service Providers' infrastructureorg.uk
Not-for-profit entitiesplc.uk
Public limited companiesThis list has been extracted from the Nominet UK rule book (Appendix A)
Expected use case
Given a domain
nrb.org.uk
(made up for testing), I get the followingnrfb.org.uk
in the output, but notnrfb.co.uk
,nrfb.plc.uk
, etc...which I would expect in this particular scenario, given the.uk
rules outlined above.Here is the piece of code I used to generate the outputs in case it helps:
Is this use case addressed somehow by
dnstwist
? If yes, how could it be achieved?I understand this is quite specific, and if it were implemented, it would have to be extended to other TLDs that have a limited set of SLDs, as
.uk
does, which would increase the complexity of the underlying logic.I would be happy to work on a PR to cover this scenario, if not covered already.
Thanks in advance!