diff --git a/powerdnsadmin/routes/api.py b/powerdnsadmin/routes/api.py index 6435261..0623c96 100644 --- a/powerdnsadmin/routes/api.py +++ b/powerdnsadmin/routes/api.py @@ -973,8 +973,9 @@ def api_zone_subpath_forward(server_id, zone_id, subpath): @apikey_can_access_domain def api_zone_forward(server_id, zone_id): resp = helper.forward_request() - domain = Domain() - domain.update() + if not Setting().get('bg_domain_updates'): + domain = Domain() + domain.update() status = resp.status_code if 200 <= status < 300: current_app.logger.debug("Request to powerdns API successful")