瀏覽代碼

zone transfer via

master
父節點
當前提交
318f554324
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      templates/knot.conf.j2

+ 6
- 0
templates/knot.conf.j2 查看文件

@@ -28,11 +28,17 @@ remote:
{% if zone.type|default('managed') == 'slave' %}
- id: {{zone.domain}}/master
address: {{zone.master.ip}}
{% if zone.master.via is defined%}
via: {{zone.master.via}}
{% endif %}
{% endif %}
{% if zone.slaves is defined %}
{% for slave in zone.slaves %}
- id: {{zone.domain}}/slave/{{slave.name}}
address: {{slave.ip}}
{% if slave.via is defined%}
via: {{slave.via}}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}


Loading…
取消
儲存