summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/templates/dns-dynamic/ddclient.conf.j22
-rwxr-xr-xsrc/conf_mode/dns_dynamic.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/dns-dynamic/ddclient.conf.j2 b/data/templates/dns-dynamic/ddclient.conf.j2
index 945191bb7..a19b79c00 100644
--- a/data/templates/dns-dynamic/ddclient.conf.j2
+++ b/data/templates/dns-dynamic/ddclient.conf.j2
@@ -26,6 +26,8 @@ if{{ ipv }}={{ address }}, \
daemon=1m
syslog=yes
ssl=yes
+pid={{ config_file | replace('.conf', '.pid') }}
+cache={{ config_file | replace('.conf', '.cache') }}
{% if address is vyos_defined %}
{% for address, service_cfg in address.items() %}
diff --git a/src/conf_mode/dns_dynamic.py b/src/conf_mode/dns_dynamic.py
index e4e2cf30e..d1ac2a08f 100755
--- a/src/conf_mode/dns_dynamic.py
+++ b/src/conf_mode/dns_dynamic.py
@@ -58,6 +58,7 @@ def get_config(config=None):
dyndns['address'][address][svc_type][svc_cfg] = dict_merge(
default_values, dyndns['address'][address][svc_type][svc_cfg])
+ dyndns['config_file'] = config_file
return dyndns
def verify(dyndns):