-
-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Solve common issues and get help
"No config file found"
Problem: The tool cannot find your configuration file.
Solution:
# Create a new config file
namecheap-dns config init
# Or manually create it
mkdir -p ~/.namecheap-dns.yaml
# Edit the file with your credentialsCheck:
- ✅ File exists at
~/.namecheap-dns.yamlor./configs/.namecheap-dns.yaml - ✅ File has correct permissions (
chmod 600) - ✅ File is readable
"Account not found"
Problem: The specified account doesn't exist.
Solution:
# List all available accounts
namecheap-dns account list
# Verify account name spelling
# Create the account if it doesn't exist
namecheap-dns account add <account-name>Check:
- ✅ Account name is spelled correctly
- ✅ Account exists in config file
- ✅ Use
account listto see all accounts
"API connection failed"
Possible causes:
| Cause | How to Check | Solution |
|---|---|---|
| ❌ Incorrect API credentials | namecheap-dns account show |
Update credentials in Namecheap |
| ❌ IP not whitelisted | curl ifconfig.me |
Add IP to Namecheap whitelist |
| ❌ Sandbox in production | namecheap-dns account show | grep sandbox |
Set use_sandbox: false
|
| ❌ Network issues | ping api.namecheap.com |
Check internet connection |
Solutions:
# 1. Verify your account configuration
namecheap-dns account show
# 2. Check if using sandbox mode
namecheap-dns account show | grep sandbox
# 3. Verify your IP address
curl ifconfig.me
# 4. Update IP in Namecheap API settings if changed
# Go to: Profile → Tools → API Access → Whitelist IPProblem: The API key is incorrect or expired.
Solution:
- Log in to Namecheap
- Go to Profile → Tools → API Access
- Verify your API key
- Update it in your config:
namecheap-dns account edit <account-name>
Problem: Your current IP address is not in the whitelist.
Solution:
- Get your current IP:
curl ifconfig.me
- Add it to Namecheap API whitelist:
- Go to Profile → Tools → API Access
- Add your IP address
- Update config if IP changed:
namecheap-dns account edit <account-name>
Problem: Trying to add a record that already exists.
Solution:
# List existing records
namecheap-dns dns list <domain>
# Update instead of add
namecheap-dns dns update <domain> <host> <type> <value>
# Or delete first, then add
namecheap-dns dns delete <domain> <host> <type>
namecheap-dns dns add <domain> <host> <type> <value>Problem: Trying to update/delete a record that doesn't exist.
Solution:
# Verify the record exists
namecheap-dns dns list <domain> | grep <host>
# Check exact hostname and type
# Use '@' for root domain, not empty stringProblem: Using an unsupported record type.
Solution:
Supported types: A, AAAA, CNAME, MX, TXT, NS, SRV
# Use correct type
namecheap-dns dns add example.com www A 192.0.2.1Problem: The domain doesn't exist in your account.
Solution:
# List all your domains
namecheap-dns domain list
# Verify domain name spelling
# Check if using correct account
namecheap-dns --account <account-name> domain listProblem: Domain is not available for registration.
Solution:
- Domain may already be registered
- Domain may be in redemption period
- Check domain status:
namecheap-dns domain check <domain>
Problem: Config file has wrong permissions.
Solution:
# Fix permissions
chmod 600 ~/.namecheap-dns.yaml
chmod 600 ./configs/.namecheap-dns.yamlProblem: Binary not in PATH.
Solution:
# Add to PATH
export PATH=$PATH:/path/to/namecheap-dns
# Or install to system
make install
# Or use full path
/path/to/namecheap-dns --versionProblem: Errors when building from source.
Solution:
# Ensure Go 1.22+ is installed
go version
# Update dependencies
go mod download
go mod tidy
# Clean and rebuild
make clean
make buildThe tool may output error messages to stderr. Check the output for detailed error information.
Some commands support verbose output:
namecheap-dns domain list -vIf you encounter a bug or need help:
- Check existing issues: https://github.com/SamyRai/namecheap/issues
- Create a new issue with:
- Error message
- Steps to reproduce
- Your configuration (mask API keys)
- Version:
namecheap-dns --version
- GitHub Issues: https://github.com/SamyRai/namecheap/issues
- GitHub Discussions: (if enabled)
For advanced debugging, you can:
-
Check configuration:
namecheap-dns config show
-
Validate configuration:
namecheap-dns config validate
-
Test API connection:
namecheap-dns account show namecheap-dns domain list