<div dir="ltr">Hi guys,<div><br></div><div>I'm just picking up the nice to have ticket of configure the default TTL as part of my general TTL refactor work seeing as the exposing and modification of TTL in the UI is unlikely to be complete before 3.3 freeze (mostly working but a few bugs remaining) :</div>
<div><br></div><div><a href="https://fedorahosted.org/bind-dyndb-ldap/ticket/70">https://fedorahosted.org/bind-dyndb-ldap/ticket/70</a><br></div><div><br></div><div><a href="https://fedorahosted.org/freeipa/ticket/2956">https://fedorahosted.org/freeipa/ticket/2956</a></div>
<div><br></div><div>The approach I'm considering is to make the record capable of an individual TTL by just appending the TTL to the record so it would look like:</div><div><div>dn: idnsName=bar, idnsName=<a href="http://example.com">example.com</a>, cn=dns, dc=example, dc=com</div>
<div>idnsName: bar</div><div>ARecord: 192.168.1.100 7200</div></div><div><br></div><div>This is an approach that matches how things like MX and SRV are dealt with (except those have numbers at the front) and would require much simpler modifications. </div>
<div><br></div><div>Then there would be a precedence to the actual TTL used in this order:</div><div>1) If a TTL is in the record data use that</div><div>2) If a TTL is in the idnsName data (the current dnsTTL attribute) then use that</div>
<div>3) If a TTL is in the zone data (as per the ticket name to be decided) then use that</div><div>4) If a TTL is specified in the named.conf configuration for the bind-dyndb-ldap plugin then use that.</div><div><br></div>
<div>Although potentially not as nice as making each data entry a first class citizen as an object in LDAP such as for an example:</div><div><div>dn: aRecord=192.168.1.100,idnsName=bar, idnsName=<a href="http://example.com">example.com</a>, cn=dns, dc=example, dc=com</div>
<div>aRecordName: bar</div><div>aRecordData: 192.168.1.100</div></div><div>aRecordTTL: 7200</div><div><br></div><div>It'd require far less upheaval in terms of migrations and testing...</div><div><br></div><div>What are your thoughts on this before I start digging into this part of the code base?</div>
<div><br></div><div>Cheers,</div><div><br></div><div>James</div></div>