GithubHelp home page GithubHelp logo

Comments (15)

Nesos-ita avatar Nesos-ita commented on August 18, 2024

This might be a good idea but only if both (time and local ip) are used.
Because local ip might change because:

  • you switch from ethernet to wifi on the same home router so local ip change but public doesn't
  • local ip expire because dhcp lease time, public ip doesn't change
  • you switch to other network, public ip change, local ip probably too
  • local ip might stay the same while public one change (for example in my config where i have dhcp reservation list so my local ip never change but the public does)

The idea is:

  • keep timed update as usual
  • add option, default enabled, to make an extra update in case local ip change

i'll need to check which is the currently used network interface, check if the ip change for that intercace or the currently used interface changed.
Probably add also a time limit to these extra automatic updates so that if your local ip change every 5 minutes you don't flood the server with requests.
I hope that a new version will be ready for the end of the next week.
i might publish a beta version so that if you have some time you can check it.

from dynamicdnsupdater.

Nesos-ita avatar Nesos-ita commented on August 18, 2024

I should have added the functionality, for now it's a beta, you can get it here
there is also the documentation on the function.
Give it a try and let me know if it works as intended :)
from a quick test seems that it works but it's late and i'll test it better in the next days.

from dynamicdnsupdater.

ghislainborremans avatar ghislainborremans commented on August 18, 2024

from dynamicdnsupdater.

ghislainborremans avatar ghislainborremans commented on August 18, 2024

I tested it for about 10 days and it seems to work perfectly.
I notice the IP address changed but this is not reflected in the IP Box nor in the log. So i do not know whether it was the automatic update or the hourly one that has updated the DNS.
A notice in the log "automatic update to IP ... at time ..." would be helpful.

from dynamicdnsupdater.

Nesos-ita avatar Nesos-ita commented on August 18, 2024

this is not reflected in the IP Box

if you mean the "Your IP" or "IP" in the graphic interface, they are for manual use only, the first returns your current ip when you press the "Get current IP" button, the other resolve a domain and gives you it's IP when you press "Resolve"

A notice in the log "automatic update to IP ... at time ..." would be helpful.

right now this is what is logged: <date time> Updating DNS: <result success/fail>
and this if local ip change detection is enabled: <date time> Ip changed, updating DNS: <result success/fail>
the only thing that is not logged is the new ip but i might add in the future...

i do not know whether it was the automatic update or the hourly one that has updated the DNS.

you can check this in the log, there are different entries for timed update or ip change based update

from dynamicdnsupdater.

ghislainborremans avatar ghislainborremans commented on August 18, 2024

from dynamicdnsupdater.

Nesos-ita avatar Nesos-ita commented on August 18, 2024

I need some informations:
1-are you using a vpn, dial up connection or 3G network? because this detects only wifi or ethernet.
2- is the option "autorun on windows boot" enabled or not? if yes can you check this file: C:\Program Files\DynamicDnsUpdater\dduSettings.txt it should contain 7 lines and the lsat should be True
otherwise do the same check in the settings file located where you palced the program.
3- if the option is enabled (line is True) open the program and after one minute, disconnect from wifi (or detach the ethernet cable if using ethernet) wait more than 30 seconds and reconnect.
4- wait at least one minute and check if there is a "ip changed" log entry
Log example (first by ip change, second timer based update):

20/10/2019 11.37.10 - Ip changed, updating DNS: OK
20/10/2019 12.07.10 - Updating DNS: OK

from dynamicdnsupdater.

ghislainborremans avatar ghislainborremans commented on August 18, 2024

from dynamicdnsupdater.

Nesos-ita avatar Nesos-ita commented on August 18, 2024

i have added a "test interface" program under compiled binary, here[1] could you try it? it uses the same code used by ddns updater but this one gives you more informations and shows a messagebox "ip changed/not changed".
because according to your answer:

  1. yes and visible in setup.txt

you have the option active. On my pc it works, so i have no idea what it could be without your help.
One last thing: setup.txt is never used anywere in the program, did you mean dduSettings.txt? don't rename settings file or it will not load them.

[1]https://github.com/Nesos-ita/DynamicDnsUpdater/raw/beta/Compiled%20Binary/testInterface.exe

from dynamicdnsupdater.

ghislainborremans avatar ghislainborremans commented on August 18, 2024

OK, with this test interface i see the problem: in the DDNS Updater tool you look for the WAN IP (62.235.17.122 in my case ) while in the testinterface you check the local IP of the PC ( 192.168.0.7).
This address is not changing. I suppose this clarifies it.

from dynamicdnsupdater.

Nesos-ita avatar Nesos-ita commented on August 18, 2024

if you could make it update automatically based on the change of the local IP

i see the problem ... you check the local IP of the PC

You asked for it! ?_?

Anyway, no problem, i'm just happy that now everything is clear.
As i said i can't disable timed update because the local ip not always change and if it changes it can't give any information about public ip changes.

But this tool (and so also ddns updater) should work on your pc: if you are disconnected and click the button it should detect that you have no ip (left textbox empty or with some virtual interface like virtualbox one).
When you connect click again the button, it should detect your ip 192.168.0.7 which is a change.
It should tell you "change detected" which in the ddns updater should trigger an update.

from dynamicdnsupdater.

ghislainborremans avatar ghislainborremans commented on August 18, 2024

OK , my mistake.
I meant to check the public IP and update DNS when that changes.

from dynamicdnsupdater.

ghislainborremans avatar ghislainborremans commented on August 18, 2024

IS that possible ?

from dynamicdnsupdater.

Nesos-ita avatar Nesos-ita commented on August 18, 2024

No, because the pc has only the local ip, the public ip is available only to the router.
The program has a button that query your public ip to the desec website but considering that the ddns update process is a query too it's pointless to query your ip and update only if necessary because they are the same action.
in theory is possible to query the public ip from the router but it is device specific (somewhere in the web config usually you can see your public ip).
I think that local ip change detection that often happens when you change network interface is a good extra but it can't work alone.
I'm going to close the issue and publish this as new stable version if you don't have any other question.

from dynamicdnsupdater.

ghislainborremans avatar ghislainborremans commented on August 18, 2024

ok, thanks

from dynamicdnsupdater.

Related Issues (8)

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.