Admin can't set TTL for DNS

Kiekeboe100

Verified User
Joined
Apr 19, 2008
Messages
146
Location
Belgium
Hi,

Only users have the field to change the TTL value of their domain.
Administrators don't see this.

Is this by design or can this be modified?

thanks,
Stijn
 
and what is the reason you cant change to user level?
 
We would also like to see this implemented in a next release.
In the admin DNS management you cannot set the TTL for the domain.
Because we use external DNS servers the records are being transferred to our external DNS servers so I would like to set the TTL without having to create a hosting pack.
 
We would also like to see this implemented in a next release.
In the admin DNS management you cannot set the TTL for the domain.
Because we use external DNS servers the records are being transferred to our external DNS servers so I would like to set the TTL without having to create a hosting pack.

How to lower your TTL just before an IP change: http://help.directadmin.com/item.php?id=87 Please note this comment: "If you are running the for just one domain, then run the perl command in /var/named/domain.com.db, instead of the named.db file and restart named."
 
How to lower your TTL just before an IP change: http://help.directadmin.com/item.php?id=87 Please note this comment: "If you are running the for just one domain, then run the perl command in /var/named/domain.com.db, instead of the named.db file and restart named."
Thanks for the heads up, we are aware of this method.
But wouldn't it be nice that our support engineers can set the TTL in DirectAdmin instead of our technical engineers to login trough SSH and use Perl commands just to set a simple thing as TTL? :)
 
I have disabled TTL because users are changing TTL values to abnormal values.
Some clients set TTL to 1(!) for example.

(To me it would be logical to allow change the TTL only for administrators.)

Now, ISNIC requires to have TTL at 86400
I am looking for a way to change the ttl for our .is domains only (manually)
can someone help me do this without enabling ALLOW_TTL_OVERRIDE serverwide?
 
Hello,

Could be something:

Code:
cp -rp /var/named{,~bak}
cd /var/named/
perl -pi -e 's/14400/86400/' *.is.db
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq

if you host DNS on locally on Directadmin server.
 
Thank you for your reply.

I have done that, but after a DNS change/update the old TTL values are back.
 
I could enable ALLOW_TTL_OVERRIDE
and delete the TTL FORM in the user templates.

But I shouldn't forget to check the template again after a DA update.

I am just wondering if this is the only way.
 
Add
Code:
ttl_override=[COLOR=#333333]86400[/COLOR]

in every

/usr/local/directadmin/data/users/userbob/domains/domain.is.conf

and

run
Code:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq
 
ttl_override= seems to be ignored if ALLOW_TTL_OVERRIDE is disabled in directadmin.conf.

I had to enable ALLOW_TTL_OVERRIDE and remove the TTL form in the user template.
 
Back
Top