For some reasons, you may want to modify the TTL (Time to Live) of a DNS Server.

The default TTL is 10800 seconds (3 hours).  To modify the TTL, edit the following file on your OS X DNS Server and replace $TTL 10800 with the $TTL value you desire.  Please note using a TTL value of 0 (zero) is not supported by some systems and is not advised.

The DNS cache on the client systems may need to be flushed to honor the new TTL.  This is done on OS X by using the “dscacheutil -flush” command.

vi /var/named/zones/

Here is an example config file:

dns1:~ root# cat /var/named/zones/

$TTL 300 IN SOA (
     2011112804    ;Serial
     86400         ;Refresh
     3600          ;Retry
     604800        ;Expire
     345600        ;Negative caching TTL
 ) IN  NS
dns1 IN  A
mail IN  A IN  MX 0
dns1:~ root#

Run the dig command to confirm the TTL information reflects what you entered:

dns1:~ root# dig @

; <<>> DiG 9.6-ESV-R4-P3 <<>> @
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 983
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;        IN    A

;; ANSWER SECTION:    300    IN    A

;; AUTHORITY SECTION:        300    IN    NS

;; ADDITIONAL SECTION:    300    IN    A

;; Query time: 1 msec
;; WHEN: Mon Nov 28 16:47:32 2011
;; MSG SIZE  rcvd: 85

dns1:~ root#

More info is available by following the links below:

Time to live (TTL) –

DNS Round Robin –

dscacheutil –