Hello,
Is it possible to give a static DNS entry unlimited TTL?
Could not find any info on if that is possible and how. What value do I put into TTL to achieve this?
Thanks
Hello,
Is it possible to give a static DNS entry unlimited TTL?
Could not find any info on if that is possible and how. What value do I put into TTL to achieve this?
Thanks
If i am not mistaken,
When you add a Static-DNS entry
It will stay in the Static-DNS-List forever or untill deleted.
Exemple :
/ip dns static add name=test address=1.1.1.1
The TTL-Value (default 24h) are for the Client asking for the Domain.
If you want your Clients to cache DNS-Entries for longer,
The maximum Time to live (TTL) value you can assign for a DNS entry is 2147483647 seconds
But be carefull not all Client will work with TTL=25000d
Exemple:
/ip dns static add name=ttt address=1.1.1.1 ttl=1000d
As @ConnyMercier already wrote … it’s not possible. And it’s bad idea as well … if clients are to cache answer indefinitely, how does one force clients to get fresh value in case record changes?
It is customary to have TTL on DNS records set to anything between an hour and a few days. This has added benefit that potential changes can spread out pretty quickly if things are prepared in advance. E.g. if original TTL was 1 day, a few days before change TTL is reduced to a few hours, one day before change TTL is reduced to an hour, a few hours before change TTL is changed to something short (e.g. 5 minutes), after change TTL is increased back to 1 day … this way there’s only 5 minutes when DNS records are out of sync with reality … for properly behaving clients that is.
Answer: ipconfig /flushdns
![]()
Yeah, right, that’s LOL answer. And, BTW, doesn’t work on my linux workstation.
But if we’re talking nonsense: DNS entry with unlimited TTL is the one written in /etc/hosts (or C:\windows\system32\driver\etc\hosts or whatever appropriate path to that file).
The idea about DNS is that domain admin doesn’t have access to all the clients and should DNS system allow for control over record life through own methods (which doesn’t include remoting into every system in the universe and executing some magical command.
, BTW, doesn’t work on my linux workstation.
Look at that… lerned something new !!
Thanks =)