https://github.com/sir-go/rkn-why
check if resource is blocked by RKN
https://github.com/sir-go/rkn-why
dns-client go golang mysql standalone webapp
Last synced: 2 months ago
JSON representation
check if resource is blocked by RKN
- Host: GitHub
- URL: https://github.com/sir-go/rkn-why
- Owner: sir-go
- Created: 2022-10-22T07:03:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-18T03:06:25.000Z (over 3 years ago)
- Last Synced: 2026-02-12T18:49:08.649Z (4 months ago)
- Topics: dns-client, go, golang, mysql, standalone, webapp
- Language: Go
- Homepage:
- Size: 5.97 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Check if the internet resource is blocked by RKN
Single-file executable binary with embedded web-interface
- check by IP (resolve by hostname via external DNS)
- check by hostname (domains in the database)
- check by url (http urls in the database)
## Config - ENV variables
| | |
|----------------|----------------|
| RKNW_PORT | service port |
| RKNW_DB_HOST | db server host |
| RKNW_DB_NAME | db name |
| RKNW_DB_USER | db username |
| RKNW_DB_PASSWD | db password |
## Build
Prepare embedded html template
```bash
bash ./prepare_template.sh
```
Build the binary
```bash
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-w -s -extldflags "-static"' -o rknw ./src
```
## Screecast
