/check_domains

Check if the domain is free by checking if the SOA record exists.

Primary LanguagePythonMIT LicenseMIT

check_domains

Check if the domain is free by checking if the SOA record exists.

Installation

Install requirements using pip:

pip install -r requirements.txt

Generating a list of domains

The easiest way is to use the crunch.

Examples:

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

Usage

To view help:

python check_domains.py

Help:

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

To start checking domains:

python check_domains.py -p domains.txt

where domains.txt is your domains file to check

To start checking domains and saving the output:

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

Script that checks only .pl domains

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