mirror of
https://github.com/andsyrovatko/s4k-billing-whois-automator.git
synced 2026-04-21 22:18:53 +02:00
Initial release: Whois infrastructure automation
This commit is contained in:
@@ -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!
|
||||
Reference in New Issue
Block a user