mrmichaelrb / hassio-addons

Docker add-ons for Home Assistant
Apache License 2.0
8 stars 15 forks source link

[Google DNS] entry is deleted, but not created #12

Open TomK opened 1 year ago

TomK commented 1 year ago

The add-on appears to successfully delete the A record (because it is missing in my cloud console), but then fails when executing the create request.

Subsequent attempts then fail the delete request because the record is already missing.

Screenshot_20221211-090931.png

dumiio commented 1 year ago

I've done some debugging and found out that sometimes curl req to https://api.ipify.org return "Bad gateway" instead public IP address. It will be good to be added an additional check that "curl -s -m 10 https://api.ipify.org" return a valid IP address.

TomK commented 1 year ago

might be worth adding a failover service too, like query-ip.com. curl query-ip.com returns an ip with no fluff

TomK commented 1 year ago

I looked through the code and saw that i can set ipv4 config item to a url and it will curl that instead of https://api.ipify.org. i've just set that config to https://query-ip.com. seems to work