-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Optionally) disable fallback to http://ifconfig.me #450
Comments
Ah, good point! Hopefully someone else can chip in here with a PR to address this since I'm unfortunately quite busy with other projects at the moment. I'll be happy to review, merge and release, of course. |
Related: #306. @troglobit @avakhitov-gmg Should we really add another option for this? Or simply not invoke I'm a firm believer of the second option. When using a custom script the user is clearly saying that he/she doesn't want anything from |
@fdcastel you make a good argument, I'm usually against adding extra options (I'd much rather remove ...). The custom options should really be the ones triggering the "you clearly know what you're doing, I'll leave you alone" :-) Seconded! |
I was checking the code and making some tests. Please correct me if I'm wrong. Currently there are 3 distinct ways to configure how to get the IP address:
The above also seems to be the "priority order". I.e.:
It seems to me that each one are very different from another. There should never be any crossing between them. In other words: If I ask for an Opinions? |
Agreed. You are not wrong. "Don't cross the streams", basically. Please continue down the rabbit hole |
Ok. The root of this problem is caused by the error handling of these 3 functions: These 3 functions are called only from
The problem lies in the bold statement above. There is no way to to differentiate between a I DON'T WANT THIS and a I WANT THIS BUT IT RETURNED AN ERROR. Working on a PR now. |
Fix #450: Do not use an IP resolution method different than the one specified in configuration.
Do I understand correctly that the pull request would not cure the problem, that the built-in default checkip-server would be queried (which is IPv4) if the configured check-ip service has a problem? This implies that there's still no support yet for an IPv6-only setup when using a checkip-server, right? |
Currently inadyn automatically (and unconditionally) falls back to default checkip-server if custom configuration fails to retrieve ip address. I'd like to deactivate fallback because if may lead to unintended actions. Please introduce configuration option to disable the fallback.
Problem in detail: I'm retrieving IPv6 address to use for update with a custom script that builds desired IPv6 address from dynamic prefix assigned by ISP and static token (suffix derived from MAC) of a network device (wifi cam or similar). inadyn updates AAAA DNS record as expected. Script may fail if IPv6 prefix is temporarily unavailable (ISP issues). In this case no update should happen (no address available). The fallback performed by inadyn identifies global IPv4 address of the router where idanyn runs and updates A record with it. The behaviour is completely counterproductive because the IPv4 address is actually inaccessable from internet (CGNAT).
The text was updated successfully, but these errors were encountered: