Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yongchengchen/godns
https://github.com/yongchengchen/godns
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yongchengchen/godns
- Owner: yongchengchen
- Created: 2024-07-04T23:54:27.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-04T23:55:33.000Z (6 months ago)
- Last Synced: 2024-07-15T08:00:46.580Z (5 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Golang DNS server
## build
run go build to build the binarybuild for your env
```shell
go build
```
cross build for platform
```shell
env GOOS=linux GOARCH=amd64 go build
```## Configs
edit these nodes below from the config/config.yaml file:
```yml
# Logger configurations.
localmode: truednsserver:
address: ""
port: 53
forwardto: "1.1.1.1:53"logger:
path: "/tmp/"
file: "dns-{Y-m-d}.log"
level: "all"
stdout: truedatabase:
sqlite:
type: "sqlite3"
link: "config/dnsdb.db"
debug: false
```## run
```shell
./godns
```