Skip to content

TheoBrigitte/ovh-dyndns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OVH DynDns

If you have a domain name at OVH you can use this service as a DynDns-like client. This service retrieve the public IP adresse or hostname and update DNS record accordingly.

  • It relies on ipify.org in order to get the public IP adresse.
  • Hostname is discover by issuing a reverse DNS lookup request.
  • OVH API communication is handled by go-ovh client.

Install

Binary

go get -d github.com/TheoBrigitte/ovh-dyndns
go build github.com/TheoBrigitte/ovh-dyndns
sudo mv ovh-dyndns /usr/local/bin

Configuration

Replace values in configuration files:

  • ovh.conf hold OVH API credential. You can get those from ovh.com. For consumer key run ovh-dyndns --consumer-key
  • ovh-dyndns.toml hold the DNS record(s) to be updated.
cp $GOPATH/github.com/TheoBrigitte/ovh-dyndns/config/ovh-dyndns.toml.sample /etc/ovh-dyndns.toml
cp $GOPATH/github.com/TheoBrigitte/ovh-dyndns/config/ovh.conf.sample /etc/ovh.conf

Systemd

sudo systemctl enable --now $GOPATH/github.com/TheoBrigitte/ovh-dyndns/systemd/ovh-dyndns.service
sudo systemctl enable $GOPATH/github.com/TheoBrigitte/ovh-dyndns/systemd/ovh-dyndns.timer

About

DynDns like OVH client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published