This script allows you to resolve your Hetzner Cloud server names via DNS.
Installation and Usage:
- Clone this repository
- Run 'sudo add-apt-repository ppa:ondrej/php' to get access to required (newer) PHP versions
- Run 'sudo apt install composer php-zip php-curl' to install binary dependencies
- Run 'composer install' to install PHP dependencies
- Run 'sudo php index.php --bind=0.0.0.0 --apikey=XXXXXXXXXXXXX'
Hint: Replace XXX with an API key you created earlier using the Hetzner Cloud Console.
How IPv6 addresses are resolved:
IPv6 addresses are resolved using the rDNS configuration, but only if the hostname matches the query.
If no rDNS is configured, the default IPv6 address ending in '::1' is returned.
What about floating IP configurations?
In current state, floating IPs are not taken into account. So your DNS query will never
return a floating IP. If you need this feature, feel free to create an issue on GitHub.