Skip to content
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

[FEAT] Local IP option #71

Closed
1 task done
gabrielecalvo opened this issue Mar 23, 2024 · 2 comments
Closed
1 task done

[FEAT] Local IP option #71

gabrielecalvo opened this issue Mar 23, 2024 · 2 comments

Comments

@gabrielecalvo
Copy link

gabrielecalvo commented Mar 23, 2024

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Have the ability to set the internal ip instead of the external one.

Reason for change

For some home-lab cases using dns certificates it would be nice to be able to set the local ip instead of the external ip.

Proposed code change

Something like UPDATE_IP=local-ipv4 could do the trick.
Maybe just adding the following extra elif-branch in https://github.com/linuxserver/docker-duckdns/blob/master/root/app/duck.sh

elif [ "${UPDATE_IP}" = "local-ipv4" ]; then
        echo "Detecting local IPv4 via hostname command"
        IPV4=$(hostname -I)
        RESPONSE=$(curl -sS --max-time 60 "https://www.duckdns.org/update?domains=${SUBDOMAINS}&token=${TOKEN}&ip=${IPV4}")
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@j0nnymoe
Copy link
Member

I feel this is something that doesn't need to be automated and you could do the same by just manually setting your duckdns address to a local IP. Or if you're needing both internal and external, you'd use duckdns.

@j0nnymoe j0nnymoe closed this as not planned Won't fix, can't repro, duplicate, stale Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants