Skip to content
/ ovpndns Public

Small script to provision openvpn client to local dns

License

Notifications You must be signed in to change notification settings

muka/ovpndns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Run with Docker

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

About

Small script to provision openvpn client to local dns

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published