Designate dns records are not unique inside the default zone

asked 2020-03-20 11:27:49 -0500

Till gravatar image

Hello,

iam currently struggling with the following scenarion:

If the same instance names are used in two different projects, the new instance overwrites the DNS record of the old instance.

The reason for this is the default format inside the designate.conf:

formatv4 = %(hostname)s.%(zone)s

To prevent this I have currently built a workaround which appends the project ID.

formatv4 = %(hostname)s.%(tenant_id)s.%(zone)s

The problem is that the DNS record name becomes very long. Is it possible to add a shorter identifier or region name for example ?

In the following example correspondence there is a reseveration_id is this one uniqe ?

https://raw.githubusercontent.com/openstack/designate/stable/stein/designate/tests/resources/sample_notifications/nova/compute.instance.create.start.json (https://raw.githubusercontent.com/ope...)

openstack version: stein

edit retag flag offensive close merge delete