Page 1 of 1

SOA Minimum TTL

Posted: Thu Nov 12, 2015 9:46 pm
by lexsus
where do I change the SOA minimum TTL 180 to eg 3600

Re: SOA Minimum TTL

Posted: Sat Jan 16, 2016 11:12 pm
by BBuchanan1013
lexsus wrote:where do I change the SOA minimum TTL 180 to eg 3600
First place to look:

Code: Select all

/home/user/conf/dns/domain.db
I suggest using a program like notepad++ to view and edit that file. However, if you want all new domains to be affected, and I don't suggest messing around too much:

Code: Select all

/usr/local/vesta/func/domain.sh
around line 226 you'll find:

Code: Select all

@    IN    SOA    $SOA.    root.$domain_idn. (
                                            $SERIAL
                                            7200
                                            3600
                                            1209600
                                            180 )
This will change only the Newly added domains. If you want to change existing, then change the domain.db listed above. Don't forget to restart DNS via command line.

Code: Select all

systemctl restart named
CentOS

Code: Select all

service bind restart
Ubuntu
*note: the actual name of the service might be different from what I've listed