Giter VIP home page Giter VIP logo

dynamic-dns's Introduction

Harsh Kapadia (he/him)

"Kindness always wins." -Selena Gomez

"We rise by lifting others." -Robert Ingersoll

Salient Projects

Web App Front End Back End Live Demo Repo
Git Graph React.js - link link
OTC CatchUp HTML, CSS, JS, Asciidoctor Jet Node.js, Deta, Shell link link
HPS Gems HTML, CSS, JS PHP, MySQL, Heroku link link
Preview Markdown React.js, CSS - link link
Template Front End Live Demo Repo
Asciidoctor Jet Asciidoctor, CSS, JS PWA link
Web Site Front End Live Demo Repo
My portfolio HTML, CSS, JS link link
Documentation Front End Live Demo Repo
Git Internals Asciidoctor Jet PWA link
Performance Comparison of TCP Versions Asciidoctor link link
Computer Networking Jekyll link link
git_basics Asciidoctor Jet PWA or Play Store (TWA) link

View all projects

dynamic-dns's People

Contributors

harshkapadia2 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

dynamic-dns's Issues

Improvements to current pub IP logic

Following are the improvements you could consider for updating the DDNS script.

  1. Handling no current file present
    https://github.com/HarshKapadia2/dynamic-dns/blob/main/ddns#L19-L21
    Resolution: There is no point in proceeding further if the file public-ip-in-use if absent. The if condition should have an exit 1 statement.

  2. Logic in updating public-ip-in-use
    As soon as the program sees the IP as changed it tries to update the local state first without considering whether the remote state has been updated.
    https://github.com/HarshKapadia2/dynamic-dns/blob/main/ddns#L25
    Resolution: Move the update IP to text file line inside the if condition "${cloudflare_http_res_code}" == "200"
    This handles the scenario when Cloudflare is down, API key errors, the internet not working, etc .. and your IP on local text file is already updated on next run.

  3. Doc/automation improvements for configurations

  • How about storing all env variables like token,zone id, etc in a .local_ddns file in /home/<user> dir. when the script starts it'll load up using commands like source .
  • Create a script (install.sh) that can directly add required cron, populate env file (run-ddns, list-all-dns-records) , everything at one go, making setup process hassle free.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.