skibish / ddns

Personal DDNS client with Digital Ocean Networking DNS as backend.
MIT License
254 stars 24 forks source link

Internet outage causes flood of email notifications. #29

Open ScrewLooseDan opened 2 years ago

ScrewLooseDan commented 2 years ago

Is there anyway to rate limit the email notifications? We just had a brief power outage, the entire time my server was queuing messages telling me:

request failed: Get "https://ipv4.icanhazip.com/": dial tcp: lookup [ipv4.icanhazip.com](http://ipv4.icanhazip.com/) on [127.0.0.53:53](http://127.0.0.53:53/): server misbehaving

failed to do a request: Get "https://api.ipify.org/?format=json": dial tcp: lookup [api.ipify.org](http://api.ipify.org/) on [127.0.0.53:53](http://127.0.0.53:53/): server misbehaving

failed to do a request: Get "https://ipv4.wtfismyip.com/json": dial tcp: lookup [ipv4.wtfismyip.com](http://ipv4.wtfismyip.com/) on [127.0.0.53:53](http://127.0.0.53:53/): server misbehaving

While getting one of these messages when there's an issue is good. Flooding my inbox with dozens, not so helpful.

skibish commented 2 years ago

Hi @ScrewLooseDan ,

Thanks for using DDNS!

At this moment there are no options to limit rate of the notifications. But I agree that such feature might be a good addition.