Catch SSL errors Properly catch SSL errors. When a connection could not be established, the ddns client will try again. If an invalid certificate is presented future updates are held back for the usual time. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Catch 'Internal Server Error' on update When there is an internal server error, we won't log an error and hold off updates for a while. This is an error on the provider's side and the client must retry in order to update the hostname. This error was seen with selfhost. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Soft-fail on network errors When an update could not be performed because of a network error (host unreachable/no route to host) we should not log an error to the database and hold off updates for a long time. Those errors are usually caused by local configuration errors and the servers of the providers should not be bothered with update requests as those won't reach them any way. The client will try to resend the update at the next update call. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Catch "no route to host" errors When there is no route to a target host, we will throw a DDNSNetworkError so that this error can be handled afterwards. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Perform lazy initialization of the database The database will only be initialized when it is actually needed. That makes starting up ddns a bit faster and allows us to execute it as non-root for simple commands like "list-providers". If the database path is not writable at all, the database feature is disable and an error message is logged. This will hopefully help us to perform the DNS update even when there is a local misconfiguration.
Update translations
Add joker.com as new provider. commit 0ad7929664513caf1e03b93af2ae4cdcf04a80ef Author: Leo-Andres <hofmann@leo-andres.de> Date: Tue Mar 17 01:55:27 2015 +0100 Add provider joker.com commit 4eb19f1c582aa32c08d150744449771ad7566eab Author: Leo-Andres <hofmann@leo-andres.de> Date: Tue Mar 17 01:54:52 2015 +0100 Add provider joker.com commit 0d3d890bc94b3eec49d44f87d66033c622b5bfd9 Author: Leo-Andres <hofmann@leo-andres.de> Date: Tue Mar 17 01:54:15 2015 +0100 Add provider joker.com
strato: Add mx and backupmx flags to update request. Add the deprecated mx and backupmx flags to the update request for strato, because this provider still uses them. The providers implementation anyway seems to be broken because already set entries get lost when an update is performed without given mx and backupmx flags. Fixes #10754.