3.7 KiB
3.7 KiB
🔧 reg.ru API Troubleshooting Guide
❌ Issue: "Access to API from this IP denied"
This error occurs when reg.ru API is blocked for your IP address due to security settings.
🔍 Diagnostics
First, determine your current IP address:
# Method 1: Using script's built-in function
sudo letsencrypt-regru --test-api
# Method 2: Using curl
curl -s https://ipinfo.io/ip
# Method 3: Using website
# Open https://whatismyipaddress.com/
✅ Solution
Method 1: Add IP to whitelist (recommended)
-
Login to reg.ru control panel
- Open https://www.reg.ru/
- Login to your account
-
Navigate to API settings
- Menu → "Settings" (Настройки)
- Section "Security" (Безопасность)
- Subsection "API"
-
Configure IP access
- Find "IP Restrictions" section
- Click "Add IP address"
- Enter your current IP address
- Save settings
-
Test settings
sudo letsencrypt-regru --test-api
Method 2: Disable IP restrictions (less secure)
⚠️ WARNING: This reduces your account security!
- In reg.ru API settings find "IP Restrictions"
- Disable "Allow access only from specified IPs" option
- Save settings
🔒 Security Recommendations
-
Use static IP
- If you have dynamic IP, consider purchasing static IP
- Or regularly update allowed IP list
-
Limit API access
- Add only necessary IP addresses
- Regularly review and clean up the list
-
Use strong passwords
- Complex password for reg.ru account
- Two-factor authentication if available
❌ Issue: "Invalid username or password"
✅ Solution
-
Check credentials
sudo nano /etc/letsencrypt-regru/config.jsonMake sure you have correct:
regru_username- reg.ru loginregru_password- reg.ru password
-
Check file permissions
sudo chmod 600 /etc/letsencrypt-regru/config.json sudo chown root:root /etc/letsencrypt-regru/config.json -
Test connection
sudo letsencrypt-regru --test-api
❌ Issue: Connection timeout
✅ Solution
-
Check internet connection
ping -c 4 api.reg.ru curl -I https://api.reg.ru/api/regru2 -
Check firewall
# Temporarily disable firewall for testing sudo ufw status sudo iptables -L -
Check proxy settings
- Ensure
HTTP_PROXY,HTTPS_PROXYenvironment variables don't interfere
- Ensure
🧪 API Testing
Always test API before use:
# Full API test
sudo letsencrypt-regru --test-api
# Test with verbose output
sudo letsencrypt-regru --test-api -v
# Check configuration
sudo letsencrypt-regru --check
📞 Getting Help
reg.ru Technical Support
- Email: support@reg.ru
- Phone: 8 (495) 580-11-11
- Online chat: on reg.ru website
Documentation
- reg.ru API: https://www.reg.ru/support/api
- Usage examples: https://www.reg.ru/support/api/examples
- API FAQ: https://www.reg.ru/support/api/faq
Diagnostic Logs
Always include logs when contacting support:
# Enable verbose logs
sudo letsencrypt-regru --test-api -v
# View recent logs
sudo tail -n 50 /var/log/letsencrypt-regru/letsencrypt_regru.log
# Certbot logs
sudo tail -n 50 /var/log/letsencrypt/letsencrypt.log
🔄 Alternative DNS Providers
If reg.ru API issues are critical, consider alternatives:
- Cloudflare - excellent API, free DNS
- Route53 (AWS) - powerful but paid
- DigitalOcean DNS - simple and reliable
- Google Cloud DNS - GCP integration
These require script modification or other certbot plugins.
Last Updated: October 29, 2025
Document Version: 1.0