smaller than uncompressed names. A packet from comrite.com was seen
to be compressed to a larger size. Added it as unit test.
- quieter logging at low verbosity level for common tcp messages.
+ - no greedy TTL update.
23 October 2007: Wouter
- fixup (grand-)parent problem for dnssec-lameness detection.
o inspect date on executable, then warn user in log if its more than 1 year.
o proactively prime root, stubs and trust anchors, feature.
early failure, faster on first query, but more traffic.
+o look into whether in incoming message should have RRsets replaced with
+ rrsets from the cache, if the one from the cache is more trusted, or has
+ lower TTL.
/* o same trust, but different in data - insert it */
if( newd->trust == cached->trust && !equal )
return 1;
- /* o see if TTL is better than TTL in cache. */
- /* if so, see if rrset+rdata is the same */
- /* if so, update TTL in cache, even if trust is worse. */
- if( newd->ttl > cached->ttl && equal ) {
- /* if the cached rrset is bogus, and this one equal,
- * do not update the TTL - let it expire. */
- if(cached->security == sec_status_bogus)
- return 0;
- /* since all else is the same, use the best trust value */
- if(newd->trust < cached->trust) {
- newd->trust = cached->trust;
- newd->security = cached->security;
- }
- return 1;
- }
return 0;
}
repinfo.c = &c;
repinfo.addrlen = p->addrlen;
memcpy(&repinfo.addr, &p->addr, p->addrlen);
- pending_list_delete(runtime, p);
+ if(!p->serviced)
+ pending_list_delete(runtime, p);
if((*cb)(&c, cb_arg, error, &repinfo)) {
fatal_exit("unexpected: pending callback returned 1");
}
forward-zone: name: "." forward-addr: 216.0.0.1
CONFIG_END
-SCENARIO_BEGIN RRset TTL is updated from message.
+SCENARIO_BEGIN RRset TTL is not greedily updated from message.
STEP 1 QUERY
ENTRY_BEGIN
ns.example.com. IN A 10.20.30.50
ENTRY_END
-
; original www.example.com query
STEP 10 QUERY
ENTRY_BEGIN
SECTION QUESTION
www.example.com. IN A
ENTRY_END
+
; immediate answer without an OUT_QUERY happening (checked on exit)
; also, the answer does not have AA set
-; NS rrset has been updated.
+; NS rrset has not been updated. No greedy TTL has happened.
STEP 11 CHECK_ANSWER
ENTRY_BEGIN
MATCH all ttl
SECTION ANSWER
www.example.com. IN A 10.20.30.40
SECTION AUTHORITY
- example.com. 200 IN NS ns.example.com.
+ example.com. 100 IN NS ns.example.com.
SECTION ADDITIONAL
ns.example.com. IN A 10.20.30.50
ENTRY_END