Initial release: Whois infrastructure automation

This commit is contained in:
2026-04-08 13:32:04 +03:00
commit 9a872d0617
4 changed files with 185 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# Whois Infrastructure Automator (for ISPs)
### 🚀 The Problem
In large ISP infrastructures, keeping the `whois` description of IP addresses synchronized with the actual network topology is a manual nightmare. When a switch is renamed or replaced, hundreds of IP records can become outdated.
### 🛠 The Solution
This script automates the synchronization between a **PostgreSQL billing database** and a **local Whois server**.
### Key Features:
***Auto-Discovery:** Fetches all IP addresses associated with a renamed switch from the DB.
***Context-Aware Update:** Intelligently parses current Whois data and replaces only the relevant switch names.
***Email Integration:** Automatically generates and sends update requests to the RIPE-like Whois mail robots.
***Logging:** Full traceability of all actions and errors.
### 📖 Usage
1. Configure your credentials in `whois.conf`.
2. Run the script with the new switch name as an argument:
```bash
./whois_upd.sh "NEW_SWITCH_HOSTNAME"
```
### Use at your own risk! The author is not responsible for any data loss!