Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 946 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 946 Bytes

go-shecan

go-shecan is dns changer command line tool (for linux and mac) that change config.resolv file according to configs/config.json

by default this tool change dns servers to shecan.

you can use this tool for getting golang packages that cannot be download with normal dns servers in iran

Install

you can clone this repo and use Makefile.

git clone https://github.com/kiarash8112/go-shecan.git && cd go-shecan && make

this will copy configs to /dev so it can be used in any directory if you want you can change path in Makefile and Init

Usage

You can change your dns server with this command

sudo go-shecan on

and change your config to last state with

sudo go-shecan off

this command will change dns server get all packages and change resolv.conf to last state

sudo go-shecan tidy

if this command didn't work you should add your go path to your .bashrc file