Hi! This is a script to buy and manage domains from terminal with PROXY.
Supported services:
- Namesilo
- Cloudflare
- TODO: Namecheap (not supported yet) (you need to have 20 domains and 50$ balance or spend 50$ for 2 years to have API key)
- TODO: Nginx UI (JwtSecret required) - https://github.com/0xJacky/nginx-ui
First run:
python3 control.py -h
- Buy domain at Namesilo
python3 control.py domain+buy --domain DOMAIN.TLD
- Add domain to Cloudlfare
python3 control.py cloud+add --domain DOMAIN.TLD
- Get Cloudflare domain info and take NS & zone_id
python3 control.py cloud+list
python3 control.py cloud+list | grep DOMAIN.TLD
- Change NS record at Namesilo
python3 control.py domain+change_ns --ns1 arturo.ns.cloudflare.com --ns2 kara.ns.cloudflare.com --domain DOMAIN.TLD
- Add A records
python3 control.py cloud+dns_edit --type A --name SUBDOMAIN --content IP --zone_id ID
- Add SSL: Flexible Page Rule(Optional)
`python3 control.py cloud+settings --zone_id xxx --url 'domain.tld/'``
python3 control.py domain+info --domain DOMAIN.TLD
python3 control.py cloud+list --log-level RESULT | jq .id -cr | xargs -n 1 python3 control.py cloud+dns_show --log-level RESULT --zone_id | jq '"\(.zone_name) - \(.type) \(.name) \(.content)"' -cr
- Check if any host has DOMAIN.TLD already
python3 control.py nginx+list | jq .id -cr | xargs -n 1 python3 control.py cloud+domains_show --id | jq '"\(.id) has \(.server_name[])"" -cr | grep DOMAIN.TLD
- See all hosts
python3 control.py nginx+list
- See current domains for host X
python3 control.py nginx+domains_show --id X
- Add domain DOMAIN_NEW.TLD to host
python3 control.py nginx+domains_edit --id X --domain DOMAIN1.TLD DOMAIN2.TLD DOMAIN3.TLD DOMAIN_NEW.TLD
- See all hosts
python3 control.py nginx+list
- See domains from host X
python3 control.py nginx+domains_show --id X
- Copy all domains and remove domain DOMAIN4.TLD you need from host X
python3 control.py nginx+domains_edit --id X --domains DOMAIN1.TLD DOMAIN2.TLD DOMAIN3.TLD
- See domains from host Y
python3 control.py nginx+domains_show --id Y
- Copy all domains and add domain DOMAIN4.TLD you need from host X to host Y
python3 control.py nginx+domains_edit --id Y --domains DOMAIN1.TLD DOMAIN2.TLD DOMAIN3.TLD DOMAIN4.TLD