change default for dns record TTL

Discussion in 'Installation/Configuration' started by Justin Albstmeijer, Jul 16, 2012.

  1. Hi,

    Currently the default TTL for dns records is 86400.
    Is there a nice way to change this default?

    I already fixed it for records in a new domain created based on a template, but 86400 is still the default for manual entries.

    I fixed it now with

    sed -i s/86400/900/g ispconfig/interface/web/dns/form/dns_*

    But I hoped there would be a nice way that will survive an ISPconfig upgrade.

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can set the ttl for all records created by the dns wizard by creating a custom dns wizard template.

  3. Thats what I said.
    I can indeed fix it for entries added through a template wizard.
    I am looking for a solution to set a default for the manual dns entries that are being added after the default ones have been created by the template wizard.
  4. Maybe I should have called it 'DNS Zone records' to prevent confusion.
  5. falko

    falko Super Moderator ISPConfig Developer

    I think the value is hard-coded somewhere, and you can change it manually only for each record through ISPConfig.
  6. That was my assumption too when starting this thread.

    "I fixed it now with: sed -i s/86400/900/g ispconfig/interface/web/dns/form/dns_*"

    Should I open a feature request to make this hard-coded value configurable?
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, please open a feature request for that in the bugtracker.

Share This Page