Shecan CLI
The Shecan CLI is used to configure your DNS name server based on Shecan website from the command line.
For more about Shecan see https://shecan.ir/
- I wrote this script, because I wanted to configure a couple of linux servers to be able to use docker hub, which are blocked in Iran. And I wanted to get an agent to do it.
Introduction
Installation
The following instructions will place the shecan executable in a
virtualenv under shecan/bin/shecan.
- Shecan requires
>= Python 3.6.1
pip
This installs the latest stable, released version.
$ python3.6 -m venv shecan
$ shecan/bin/pip install shecan
Quickstart
- Run
shecan update- It will get Shecan DNS name servers and save them into a configuration file. - Run
shecan listIt will show shecan DNS name servers from the configuration file. - Run
shecan setThis will change your DNS temporarily by moving your current/etc/resolv.conffile and replace it with shecan DNS name server. If you encounter permission problem run the command this way:sudo $(which shecan) set. - Run
shecan verifyIt will check your DNS configuration and make sure that shecan works fine for you. - Run
shecan restoreIt will restore your previous DNS configuration. - Run
shecan showIt will print your current DNS configuration. - Run
shecan --versionIt will show shecan's version. - Run
shecan --helpIt will show full command-line options and subcommands.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shecan-0.4.2.tar.gz
(10.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
shecan-0.4.2-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file shecan-0.4.2.tar.gz.
File metadata
- Download URL: shecan-0.4.2.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4f33d8ab62b8a88ac209d34ea8910bb597ae13a7494c61be392268b18de1eb6
|
|
| MD5 |
2ec18145f94bb791dbb14c643451227c
|
|
| BLAKE2b-256 |
095d001ca6e2103c890cdf144b22701e0b3a5ba7d42f4f31fe70620282baead3
|
File details
Details for the file shecan-0.4.2-py3-none-any.whl.
File metadata
- Download URL: shecan-0.4.2-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8177c2e135202c8bd1c8ecef372464805ba5d0f3465d8f0a052b97476a7211a
|
|
| MD5 |
a5d75c9220e5f63218334b7e489c8c96
|
|
| BLAKE2b-256 |
3218f277666f40c3e19ec25eeaad0e33cfc1dc54a4ee2a6c0e8fda3de8bea18f
|