Skip to main content

'The Shecan CLI is used to configure your DNS configuration based on Shecan website from the command line.'

Project description

Shecan CLI

image image image image


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

How to use shecan?

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 list It will show shecan DNS name servers from the configuration file.
  • Run shecan set This will change your DNS temporarily by moving your current /etc/resolv.conf file and replace it with shecan DNS name server. If you encounter permission problem run the command this way: sudo $(which shecan) set.
  • Run shecan verify It will check your DNS configuration and make sure that shecan works fine for you.
  • Run shecan restore It will restore your previous DNS configuration.
  • Run shecan show It will print your current DNS configuration.
  • Run shecan --version It will show shecan's version.
  • Run shecan --help It will show full command-line options and subcommands.

Project details


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)

Uploaded Source

Built Distribution

shecan-0.4.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

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

Hashes for shecan-0.4.2.tar.gz
Algorithm Hash digest
SHA256 a4f33d8ab62b8a88ac209d34ea8910bb597ae13a7494c61be392268b18de1eb6
MD5 2ec18145f94bb791dbb14c643451227c
BLAKE2b-256 095d001ca6e2103c890cdf144b22701e0b3a5ba7d42f4f31fe70620282baead3

See more details on using hashes here.

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

Hashes for shecan-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8177c2e135202c8bd1c8ecef372464805ba5d0f3465d8f0a052b97476a7211a
MD5 a5d75c9220e5f63218334b7e489c8c96
BLAKE2b-256 3218f277666f40c3e19ec25eeaad0e33cfc1dc54a4ee2a6c0e8fda3de8bea18f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page