Browse files

fixed RT: #4995: Negative DNS response TTL is too long.

  • Loading branch information...
1 parent 710e137 commit 10f855ca34753be414aa2c40cb9f8096d55bac6b Neil Soman committed Dec 5, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 clc/modules/dns/src/main/java/com/eucalyptus/dns/TransientZone.java
View
9 clc/modules/dns/src/main/java/com/eucalyptus/dns/TransientZone.java
@@ -105,7 +105,8 @@ public static Zone getInstanceExternalZone( ) {
long refresh = 86400;
long retry = ttl;
long expires = 2419200;
- long minimum = ttl;
+ //This is the negative cache TTL
+ long minimum = 600;
Record soarec = new SOARecord( name, DClass.IN, ttl, name, Name.fromString( "root." + name.toString( ) ), serial,
refresh, retry, expires, minimum );
long nsTTL = 604800;
@@ -131,7 +132,8 @@ public static Zone getInstanceInternalZone( ) {
long refresh = 86400;
long retry = ttl;
long expires = 2419200;
- long minimum = ttl;
+ //This is the negative cache TTL
+ long minimum = 600;
Record soarec = new SOARecord( name, DClass.IN, ttl, name, Name.fromString( "root." + name.toString( ) ), serial,
refresh, retry, expires, minimum );
long nsTTL = 604800;
@@ -285,7 +287,8 @@ public static Zone getPtrZone(Name queryName) {
long refresh = 86400;
long retry = ttl;
long expires = 2419200;
- long minimum = ttl;
+ //This is the negative cache TTL
+ long minimum = 600;
Record soarec = new SOARecord( name, DClass.IN, ttl, name, Name.fromString( "root." + name.toString( ) ), serial,
refresh, retry, expires, minimum );
long nsTTL = 604800;

0 comments on commit 10f855c

Please sign in to comment.