The DNS Lookup Tool is a Python script that performs DNS lookups for a list of IP addresses and appends a domain name to each IP address. This tool can be helpful for discovering domain names associated with specific IP addresses.
- Resolve IP addresses to domain names using the
host
command. - Input a list of IP addresses from a file.
- Customize the domain name to append to each IP address.
- Save the results to an output file.
-
Clone the repository or download the script to your local machine.
-
Ensure you have Python 3.x installed.
-
Open a terminal or command prompt and navigate to the directory where the script is located.
-
Run the script with the following command:
python script.py -f <input_file> -d <domain_name> -o <output_file>
Replace <input_file>, <domain_name>, and <output_file> with your desired values:
- <input_file>: Path to the file containing the list of IP addresses.
- <domain_name>: The domain name you want to append to each IP address.
- <output_file>: Path to the file where you want to save the results.
For example:
python script.py -f Subdomain.txt -d example.com -o results.txt
- The script will read the list of IP addresses from the input file, perform DNS lookups, and save the results to the output file.
This project is licensed under the MIT License - see the LICENSE file for details.