https://github.com/muka/ovpndns
Small script to provision openvpn client to local dns
https://github.com/muka/ovpndns
dns docker golang openvpn
Last synced: about 2 months ago
JSON representation
Small script to provision openvpn client to local dns
- Host: GitHub
- URL: https://github.com/muka/ovpndns
- Owner: muka
- License: mit
- Created: 2017-06-08T07:44:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-01T05:44:39.000Z (almost 6 years ago)
- Last Synced: 2025-02-05T04:49:26.999Z (4 months ago)
- Topics: dns, docker, golang, openvpn
- Language: Go
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenVPN DNS sync
Tool that parse a openvpn status file and store to hosts name/ip pairs as hosts-like file for dnsmasq or push to [a dynamic DNS](https://github.com/muka/ddns)
## Run with Docker
```bash
docker run -v `pwd`/data:/data -v /tmp/openvpn-status.log:/tmp/openvpn-status.log raptorbox/ovpndns-amd64 -s /tmp/openvpn-status.log -o /data/hosts
```## Options
- `--src` (`OVPN_STATUS_FILE`) Set the openvpn status file source
- `--out` (`OUT_FILE`) Set the output file of a hosts-like formatted list of clients, let empty to disable
- `--domain` (`DOMAIN`) Set the default domain to append to each host name
- `--ddns` (`DDNS`) Enable DDNS sync
- `--ddns-host` (`DDNS_HOST`) ddns gRPC port in format `host:port`, let empty to disable
- `--debug` (`DEBUG`) Enable debugging logs## Development Setup
`go get ./...`
## License
MIT License