ovh-dynhost2
Update a Ovh DynHost or a A entry with your current IP.
Usage no npm install needed!
<script type="module">
import ovhDynhost2 from 'https://cdn.skypack.dev/ovh-dynhost2';
</script>
Update a Ovh DynHost or a A entry with your current IP.
<script type="module">
import ovhDynhost2 from 'https://cdn.skypack.dev/ovh-dynhost2';
</script>
gt; ovh-dynhost2 --help Usage: index [options] [command] create and update a dyn-host or standard DNS entry. Options: -V, --version output the version number -v, --verbose verbose process -s, --standard use standard DNS entry instead of dynhost (default: []) -d, --domain <domain> add domain to configure (default: []) -u, --url <url> add url used to find public IP (default: []) -l, --local <localAdress> Local address to bind if you have mutiple gateway -i, --interface <inet> interface to use -t, --token <tokenfile> save and reuse the certificat by storing them in a file -c, --credential <credential> provide a credential as {appKey}:{appSecret}:{consumerKey} to be store in token file --curl use curl --timeout <timeout> timeout to get ip address (default: "2000") -h, --help display help for command Commands: dump dump compact credential for quick deploy
Update 2 entry
ovh-dynhost2 -d dom1.domain.com -d dom1.seconddom.net -t ~/.secretToken.json
Update one entry with an 2 custom url to detect public IP
ovh-dynhost2 -d dom1.domain.com -u http://monip.org -u http://ipProvider1.org/raw -t ~/.secretToken.json
Update one entry on a multiple gateway host by interface name
ovh-dynhost2 -d dom1.domain.com -l eth2
Update one entry on a multiple gateway host by interface IP
ovh-dynhost2 -d dom1.domain.com -l 10.0.0.2
To make the compilation works for a global root setup, you may need to configure your npm with this:
apt install python libcurl4-openssl-dev build-essential
npm install -g node-pre-gyp
npm config set user 0
npm config set unsafe-perm true
npm install -g ovh-dynhost2