mirror of
https://github.com/andsyrovatko/s4k-billing-whois-automator.git
synced 2026-04-21 22:18:53 +02:00
1.2 KiB
1.2 KiB
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
- Configure your credentials in
whois.conf. - Run the script with the new switch name as an argument:
./whois_upd.sh "NEW_SWITCH_HOSTNAME"
⚖️ License
This project is licensed under the MIT License - see the LICENSE file for details.