GitHub - thakerng/DynamicHostSyncronizing: This project is used for updating /etc/hosts automatically when your home-server's public IP address has been changed because of NAT. The project requires at least one static IP server to record fluctuated ip address from home-server.

The project was developed in Python and used for updating /etc/hosts automatically when your home-server's public IP address has been changed because of ISP. The project requires at least one static IP server outside to record fluctuated ip address from the home-server.

Requirement

  • Static IP server (OS: any Linux Distro )
  • Home-Server installed python

Installation

  1. Copy odind folder to static IP server in any path and make odind folder in /var/log ( path of Log file )
  2. You can config any parameters such as port or ip address in odin.py
  3. Append followed comment into /etc/host to make zone of dynamic hostname
      # dynamic.start:
      
      # :dynamic.end 
  1. Open odind folder and run server with this command run python odind.py start (the process runs in daemon mode)
  2. Copy thor folder into home-server
  3. You can config any parameters such as port or hostname (default is homeserver) in thor.py
  4. Open thor folder and run client with this command python thord.py start (the process also runs in daemon mode)
  5. Test by ping to hostname in Static IP Server