Skip to content

CLI tool to buy, manage, and automate domains on Namesilo and Cloudflare with proxy support ๐ŸŒโš™๏ธ๐Ÿ–ฅ๏ธ

Notifications You must be signed in to change notification settings

ac-ir/domain-command-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Hi! This is a script to buy and manage domains from terminal with PROXY.

Supported services:

First run:

python3 control.py -h

Workflows

General workflow

  1. Buy domain at Namesilo

python3 control.py domain+buy --domain DOMAIN.TLD

  1. Add domain to Cloudlfare

python3 control.py cloud+add --domain DOMAIN.TLD

  1. Get Cloudflare domain info and take NS & zone_id

python3 control.py cloud+list

python3 control.py cloud+list | grep DOMAIN.TLD

  1. Change NS record at Namesilo

python3 control.py domain+change_ns --ns1 arturo.ns.cloudflare.com --ns2 kara.ns.cloudflare.com --domain DOMAIN.TLD

  1. Add A records

python3 control.py cloud+dns_edit --type A --name SUBDOMAIN --content IP --zone_id ID

  1. Add SSL: Flexible Page Rule(Optional)

`python3 control.py cloud+settings --zone_id xxx --url 'domain.tld/'``

Renew and check domain

python3 control.py domain+info --domain DOMAIN.TLD

Check all domains dns record in Cloudflare

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

TODO

Add domain to host

  1. 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

  1. See all hosts

python3 control.py nginx+list

  1. See current domains for host X

python3 control.py nginx+domains_show --id X

  1. 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

Transfer domain from host X to host Y

  1. See all hosts

python3 control.py nginx+list

  1. See domains from host X

python3 control.py nginx+domains_show --id X

  1. 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

  1. See domains from host Y

python3 control.py nginx+domains_show --id Y

  1. 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

About

CLI tool to buy, manage, and automate domains on Namesilo and Cloudflare with proxy support ๐ŸŒโš™๏ธ๐Ÿ–ฅ๏ธ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages