浏览代码

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 %}


正在加载...
取消
保存