[lug] DNS Time
Jeffrey B. Siegal
jbs at quiotix.com
Sun Dec 5 08:46:49 MST 1999
"Shannon M. Johnston" wrote:
> How do I reduce the TTL time?
The default TTL for the domain is in the SOA record. Mine looks like this:
@ IN SOA lx.quiotix.com. root.lx.quiotix.com. (
1999061903 ;Serial
86400 ;Refresh
3600 ;Retry
3600000 ;Expire
172800) ;Minimum
IN NS lx.quiotix.com.
IN NS ns.brainstorm.net.
IN NS lambda.lambdatel.com.
IN NS ns2.brainstorm.net.
The "Minimum" (poorly named) sets the TTL (in seconds) for all records in the
domain that don't have one. If you want to change the TTL for just a single
record, I think you just add it to that line after the name:
For example, change
jeff-pc IN A 199.164.185.8
to
jeff-pc 300 IN A 199.164.185.8
I'm not 100% sure this is right though. Check the bind documentation or try
it and see. After making any changes to your zone files, do a "killall -HUP
named"
You can check the TTL on records using "dig":
--->
[jbs at lx Downloads]$ dig jeff-pc.quiotix.com
; <<>> DiG 8.2 <<>> jeff-pc.quiotix.com
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4
;; QUERY SECTION:
;; jeff-pc.quiotix.com, type = A, class = IN
;; ANSWER SECTION:
jeff-pc.quiotix.com. 2D IN A 199.164.185.8
<---
Hope this helps.
More information about the LUG
mailing list