38 lines
636 B
Markdown
38 lines
636 B
Markdown
# DNS_SERVICE (frontend for dnsmasq)
|
|
|
|
- [routes](#routes)
|
|
- [build](#build)
|
|
- [configure](#configure)
|
|
- [example](#example)
|
|
|
|
## routes
|
|
|
|
- `GET` `/` - frontend
|
|
- `GET` `/api/settings` - get all settings
|
|
- `POST` `/api/settings` - set all settings
|
|
- `GET` `/api/settings/file` - get settings file content
|
|
- `POST` `/api/settings/file` - set settings file content
|
|
|
|
## build
|
|
|
|
```shell
|
|
go build
|
|
```
|
|
|
|
## configure
|
|
|
|
### example
|
|
|
|
```
|
|
DNSMASQ_CONFIG=/etc/dnsmasq.conf
|
|
|
|
ENABLE_TLS=true
|
|
CERT_FILE=/etc/dns_service/dns.home.com.crt
|
|
KEY_FILE=/etc/dns_service/dns.home.com.key
|
|
|
|
SERVER_ADDRESS=0.0.0.0
|
|
SERVER_PORT=8090
|
|
|
|
SYSTEM_INITIALIZATION=rc
|
|
```
|