Check if the domain is free by checking if the SOA record exists.
Install requirements using pip:
pip install -r requirements.txt
The easiest way is to use the crunch.
To generate a list consisting of 2-character domains (numbers and letters) for the .pl. Just run the command:
crunch 5 5 0123456789abcdefghijklmnopqrstuvwxyz -t @@.pl -o domains.txt
To generate a list consisting of 3-character domains (letters only) for the .pl. Just run the command:
crunch 6 6 abcdefghijklmnopqrstuvwxyz -t @@@.pl -o domains.txt
python check_domains.py
usage: check_domains.py [-h] -p PROCESS [-o OUTPUT] [-e]
Checking if the domain has SOA records. If it doesn't, there is a good chance
that it can be free.
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
Output file
-e, --errors DNS errors as registered domains
required arguments:
-p PROCESS, --process PROCESS
File to process
python check_domains.py -p domains.txt
where domains.txt
is your domains file to check
python check_domains.py -p domains.txt -o output.txt
where domains.txt
is your domains file to check and output.txt
is a file with domains that can be free
You can also use the -e
flag to not display domains as free if there was a DNS error.
python check_domains.py -p domains.txt -o output.txt -e
where domains.txt
is your domains file to check and output.txt
is a file with domains that can be free
If you only have a few .pl domains to check, for example after using the previous script, you can check them with a script that queries the dns.pl API.
Remember that there is a limit of API calls!
python check_domains_pl.py -p domains.txt -o output.txt