Skip to content

Add optional parameter to pass the IP address. Avoids querying ip.hetzner.com - #46

Open
FlexApex wants to merge 2 commits into
FarrowStrange:masterfrom
FlexApex:add-orig-ip
Open

Add optional parameter to pass the IP address. Avoids querying ip.hetzner.com#46
FlexApex wants to merge 2 commits into
FarrowStrange:masterfrom
FlexApex:add-orig-ip

Conversation

@FlexApex

@FlexApex FlexApex commented Dec 1, 2025

Copy link
Copy Markdown

When updating the IP from an ppp-up script, the local IP is already known and doesn't have to be queried.
This PR adds the optional parameter -i <ip> and, if passed, doesn't query ip.hetzner.com for the IP.
Saves resources and useful for multi-WAN setups, where you want to update for a different interface than the current route.

Example use:

#!/bin/bash

HETZNER_AUTH_API_TOKEN="..."
logger -t hetznerDNS "Updating Hetzner DNS: dyndns.example.com to new IP $4"
/usr/local/bin/hetzner-dns-update.sh -Z example.com -n dyndns -i $4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant