Flask_Whois is a web application that allows you to look up domain names and IP addresses, providing detailed WHOIS information, including expiration dates and raw data.
- Domain/IP Lookup: Enter a domain or IP address to fetch its WHOIS information.
- Formatted Dates: Expiration dates are displayed with ordinal indicators for enhanced readability.
- Python 3.x
- Flask
- Python
whoispackage whoiscommand installed on the system for domain lookup (see below for Docker support)- Docker (for containerized deployment)
-
Clone the repository
git clone https://github.com/yourusername/flask_whois.git cd flask_whois -
Create a virtual environment
python3 -m venv venv source venv/bin/activate -
Install the dependencies
pip install -r requirements.txt
-
Ensure
whoisis installed (if you're not using docker)On Linux and macOS, you can install the
whoiscommand using your package manager.- Linux (Debian-based):
sudo apt-get install whois
- macOS (with Homebrew):
brew install whois
On Windows, you will need to install
whoismanually, such as from Microsoft Sysinternals.Note: If the
whoiscommand is not available on your system, you can deploy and run the app using Docker. - Linux (Debian-based):
-
Run the application
python app.py
-
Access the app
Open your browser and navigate to
http://127.0.0.1:5000/.
Flask_Whois can be deployed using Docker, which comes pre-configured with the whois command to avoid system-specific installations.
-
Build the Docker image
docker build -t flask_whois . -
Run the Docker container
docker run -p 8000:8000 flask_whois
-
Access the app
Open your browser and navigate to
http://127.0.0.1:8000/.
To run the application using Docker Compose, use the following docker-compose.yml:
services:
flask_whois:
build: .
ports:
- "8000:8000"
restart: always-
Run the application with Docker Compose
docker-compose up -d --build
-
Access the app
Open your browser and navigate to
http://127.0.0.1:8000/.
- If you are not using Docker, ensure that the
whoiscommand is installed on your system to perform domain lookups. - For a smoother setup, consider using Docker, which includes the
whoiscommand in the container.
Contributions are welcome! Please open an issue to discuss your ideas or submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
I am Monazir Muhammad Doha, on a mission to bring my ideas to life. Check my website HoundSec

