mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
Feature request: Allow updating to Private IP address instead of Public IP address #435
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MRDGH2821 on GitHub (Sep 9, 2024).
What's the feature?
As the title says, please add an option to allow for DDNS updates with private IP instead of public IP.
Extra information?
My network is under double NAT system, and thus nothing is accessible. So in DuckDNS I have put my device's private network local IP address (
192.168.1.80).I have made a DuckDNS updater bash script which can check if the public IP is pingable or not. If yes update to that, else use private IP. So I was thinking that if such functionality can come in DDNS-Updater too, that would be nice.
Bash DDNS updater
@primez commented on GitHub (Oct 12, 2024):
Hello @MRDGH2821,
I am not a maintainer of this project, but I also needed this feature and decided to implement it myself.
I am not sure if it will be accepted but you can download the code and use my version - it has been verified in a container and a Linux env.
Here is a PR https://github.com/qdm12/ddns-updater/pull/839
@MRDGH2821 commented on GitHub (Oct 12, 2024):
Thanks for the implementation!
There was one limitation I faced in my bash script.
If I run it on host, private IP is correct.
But if run inside container, it either gives docker container's private ip or fails to find any IP.
I haven't run your code, but I'll check it out soon!
@primez commented on GitHub (Oct 12, 2024):
My implementation will also retrieve the IP of a container because the app thinks it is the host.
@gorucci commented on GitHub (Nov 14, 2024):
+1 for the feature. While one can (in case of static local IPs) manage this type of records at dns hoster UI, it's not very convenient.
To be more specific, I want to manage my local service's dns at docker-compose. Thus it can be easily transferred to another machine/VM.
@Neustradamus commented on GitHub (Mar 15, 2025):
@qdm12: What do you think?
Linked to: