Skip to content
Browse files

reduce ttl for front end responses.

  • Loading branch information...
1 parent 4418b1b commit 168ee95a10b00802c87d00bb370417bea8d79f62 Neil Soman committed Dec 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 clc/modules/dns/src/main/java/com/eucalyptus/dns/TransientZone.java
View
4 clc/modules/dns/src/main/java/com/eucalyptus/dns/TransientZone.java
@@ -195,7 +195,7 @@ public SetResponse findRecords( Name name, int type ) {
try {
InetAddress cloudIp = Topology.lookup( Eucalyptus.class ).getInetAddress( );
if (cloudIp != null) {
- resp.addRRset( new RRset( new ARecord( name, 1, ttl, cloudIp ) ) );
+ resp.addRRset( new RRset( new ARecord( name, 1, 20/*ttl*/, cloudIp ) ) );
}
return resp;
} catch (Exception e) {
@@ -256,7 +256,7 @@ public SetResponse findRecords( Name name, int type ) {
LOG.error(e);
return super.findRecords( name, type );
}
- resp.addRRset( new RRset( new ARecord( name, 1, ttl, walrusIp ) ) );
+ resp.addRRset( new RRset( new ARecord( name, 1, 20/*ttl*/, walrusIp ) ) );
return resp;
} else {
return super.findRecords( name, type );

0 comments on commit 168ee95

Please sign in to comment.
Something went wrong with that request. Please try again.