https://github.com/alisonmitchell/domain-checker
An application to import, iterate over, acquire WHOIS data and perform a DNS lookup for a list of domains. Regular expressions are then used to identify patterns and categorise domain names.
https://github.com/alisonmitchell/domain-checker
click python regex whois
Last synced: 7 days ago
JSON representation
An application to import, iterate over, acquire WHOIS data and perform a DNS lookup for a list of domains. Regular expressions are then used to identify patterns and categorise domain names.
- Host: GitHub
- URL: https://github.com/alisonmitchell/domain-checker
- Owner: alisonmitchell
- Created: 2021-01-20T21:11:48.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-10T19:04:17.000Z (over 4 years ago)
- Last Synced: 2025-03-05T03:45:44.470Z (over 1 year ago)
- Topics: click, python, regex, whois
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Domain Checker
## Project description
The challenge originated in an audit project to identify whether a number of website domains owned by an organisation were still required. A list of these domains existed although in some cases it was unclear which area of the business they "belonged" to.
The solution was twofold:
1. To develop an application using Python to read in a list of domains contained in a csv file, iterate for each domain to acquire WHOIS data and perform a DNS lookup to obtain IP address, and output to a spreadsheet all the information about the domain (IP address, Registrar, Expiration date and whether the WHOIS query found the domain or failed due to timeouts).
2. To use regular expressions to identify patterns in domain names relating to different areas of the business, bin the data into categories, and output as columns in a spreadsheet. This would help determine which ones to keep because they were currently in use, may be used in the future, or were required for purposes of intellectual property and brand protection.
## Source
Test dataset created for the purpose of testing the algorithm.
## Requirements
* Python 3.8.x
* whois: a Python wrapper of a client for WHOIS directory service
* click: a Python package for creating command line interfaces