+----------------------+
| $ namecheap-cli |
| > add subdomain... |
| [========--] 80% |
+----------------------+
Namecheap Scripts
A collection of Python scripts to manage DNS records through the Namecheap API.
Overview
These scripts allow you to manage your Namecheap domains directly from the command line, eliminating the need to navigate through the web interface for common DNS operations.
Features
- Add/Update Subdomain A Records - Quickly point subdomains to new IP addresses
- Check/List DNS Records - View existing DNS records for any domain
- CLI-First Design - Scriptable and automatable
Usage
# Add or update a subdomain
python add_subdomain.py --domain dev.example.com --ip 8.8.8.8
# Check existing records
python check_old_records.py --domain example.com
Getting Started
- Clone the repository
- Create a
.envfile with your Namecheap API credentials - Install dependencies:
pip install -r requirements.txt - Run the scripts