Comments (15)
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.
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.
from dynamicdnsupdater.
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.
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.
from dynamicdnsupdater.
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.
from dynamicdnsupdater.
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:
- 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.
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.
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.
OK , my mistake.
I meant to check the public IP and update DNS when that changes.
from dynamicdnsupdater.
IS that possible ?
from dynamicdnsupdater.
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.
ok, thanks
from dynamicdnsupdater.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamicdnsupdater.