ydns / bash-updater

YDNS Bash Updater Script
GNU General Public License v3.0
80 stars 43 forks source link

Determining My Endpoint Addresses #23

Open grahjenk opened 9 years ago

grahjenk commented 9 years ago

I have both IPv4 and IPv6 addresses, and I'd like to be able to get each of them separately. Could we extend the "https://ydns.eu/api/v1/ip" capability please, perhaps by using separate URLs like:

https://ydns.eu/api/v1/ip4 .. and .. https://ydns.eu/api/v1/ip6

Regards ..

Mikaela commented 9 years ago

I have both IPv4 and IPv6 automatically upgraded with this script. You must just ask two records to ydns, A and AAAA.

commx commented 9 years ago

The current API is not able to provide that, because the ip resource looks for the REMOTE_ADDR header as supplied by the web server. If your client connects via IPv4, we only see the IPv4 address and vice-versa.

However, as mentioned recently, I'm working on a major update with a new REST-based API (v2), which offers all this features (also bulk update of records).

I'll keep this issue opened as feature request.