1
0
mirror of https://github.com/namibia/demo-sync.git synced 2024-11-21 19:15:10 +00:00
Go to file
2017-07-22 00:25:05 +01:00
getip.sh fixed repo url 2017-07-22 00:25:05 +01:00
LICENSE improved the setip, added the basic getip 2017-07-21 23:48:24 +01:00
readme.md improved the setip, added the basic getip 2017-07-21 23:48:24 +01:00
setip.sh fixed repo url 2017-07-22 00:25:05 +01:00

Dynamic IP

This script will update the VDM system with your dynamic IP. To run this script, use the following command (as root):

setip = set IP to VDM system getip = will return all details related to this server

First time use to setup permission as root to set IP:

bash <(curl -s https://raw.githubusercontent.com/vdm-io/dynamic-ip/master/setip.sh)

Once permission is set:

curl -s https://raw.githubusercontent.com/vdm-io/dynamic-ip/master/setip.sh | bash

First time use to setup permission as root to get IPs:

bash <(curl -s https://raw.githubusercontent.com/vdm-io/dynamic-ip/master/getip.sh)

Once permission is set:

curl -s https://raw.githubusercontent.com/vdm-io/dynamic-ip/master/getip.sh | bash

This script performs the following actions:

  • Adds random Host Key.
  • Adds a cron entry to update this file on a scheduled basis.
  • Adds the server IP to VDM system or Gets dynamic IPS for DNS.