PTR

Asked by George Kissandrakis

In another repository i see designate/network_api which is for managing PTR records and here i see 2-3 requests for PTR
Do you plan to include PTR support?

Thank you
George

Question information

Language:
English Edit question
Status:
Solved
For:
Designate Edit question
Assignee:
Graham Hayes Edit question
Solved by:
Graham Hayes
Solved:
Last query:
Last reply:
Revision history for this message
Graham Hayes (grahamhayes) said :
#1

We already do support PTR records in designate.

Currently by default we disable the usage of PTR records, but this can be turned back on.

We did also block the .arpa TLD initially by default, but that has been replaced with an API, so by default you should be fine.

Revision history for this message
George Kissandrakis (gkissand) said :
#2

Is there any configuration guide how to do this?

Revision history for this message
Best Graham Hayes (grahamhayes) said :
#3

Not at the moment...

To create a PTR record, you would first create a in-addr.arpa domain (eg 0.0.10.in-addr.arpa for the 10.0.0.x subnet)
you would then create a records with type PTR in this domain, named for the last octet of the IP (eg 42.0.0.10.in-addr.arpa for IP 10.0.0.42)

then you should have reverse DNS running on designate - you just need to point people at the designate managed DNS server.

Is that what you were looking for?

If you are on IRC, were are in #openstack-dns on irc.freenode.net there is generally a few people there throughout the day

Revision history for this message
George Kissandrakis (gkissand) said :
#4

I will try irc too
I have configured designate with powerdns, it works fine
every time an instance is created, i get an A record like <instance-name>-<(%octet3)>-<(%octet4)>.domain
My config is this

[handler:nova_fixed]
domain_id = bd6c976e-e4e8-4ddc-adc9-066bc5f5f13d
notification_topics = notifications
control_exchange = 'nova'
format = '%(display_name)s-%(octet2)s-%(octet3)s.%(domain)s'

but i want to add also PTR record
Can i declare multiple domain_ids? how should designate know if it is A or PTR record?

thnx

Revision history for this message
Kiall Mac Innes (kiall) said :
#5

Ah - You're using designate-sink and want the PTRs created.. So, the sink handlers that come out of the box are really intended to be little more than examples.. Everyone want's something different, so we chose to provide simple handlers that can be used as examples :)

There's an example plugin at [1] with the meat of it being in [2]. Customizing the behavior to suit your needs should be fairly simple (assuming you know python!).

[1]: https://github.com/stackforge/designate/tree/master/contrib/designate-ext-samplehandler
[2]: https://github.com/stackforge/designate/blob/master/contrib/designate-ext-samplehandler/designate_ext_samplehandler/notification_handler/sample.py