diff --git a/ansible/roles/designate/templates/pools.yaml.j2 b/ansible/roles/designate/templates/pools.yaml.j2 index f35ef5a9f5..02a1291049 100644 --- a/ansible/roles/designate/templates/pools.yaml.j2 +++ b/ansible/roles/designate/templates/pools.yaml.j2 @@ -25,8 +25,8 @@ description: BIND9 Server {{ hostvars[bind_host]['ansible_' + hostvars[bind_host]['api_interface']]['ipv4']['address'] }} masters: {% for mdns_host in groups['designate-mdns'] %} - - host: {{ hostvars[mdns_host]['ansible_' + hostvars[mdns_host]['api_interface']]['ipv4']['address'] }} - port: 5354 + - host: {{ hostvars[mdns_host]['ansible_' + hostvars[mdns_host]['dns_interface']]['ipv4']['address'] }} + port: {{ designate_mdns_port }} {% endfor %} options: host: {{ hostvars[bind_host]['ansible_' + hostvars[bind_host]['api_interface']]['ipv4']['address'] }} @@ -41,8 +41,8 @@ description: BIND9 Server {{ bind_host }} masters: {% for mdns_host in groups['designate-mdns'] %} - - host: {{ hostvars[mdns_host]['ansible_' + hostvars[mdns_host]['api_interface']]['ipv4']['address'] }} - port: 5354 + - host: {{ hostvars[mdns_host]['ansible_' + hostvars[mdns_host]['dns_interface']]['ipv4']['address'] }} + port: {{ designate_mdns_port }} {% endfor %} options: host: {{ bind_host }} diff --git a/releasenotes/notes/add-designate-bind-mdns-123e79587bb06072.yaml b/releasenotes/notes/add-designate-bind-mdns-123e79587bb06072.yaml new file mode 100644 index 0000000000..49bc9eaf96 --- /dev/null +++ b/releasenotes/notes/add-designate-bind-mdns-123e79587bb06072.yaml @@ -0,0 +1,3 @@ +--- +fixes: + - Change the service listening port of MDNS by dns_interface.