mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Use config settings for DNS TTL values across all code
Attending to this old bug will improve our ability to perform zone comparisons between Datastore and the DNS provider. Right now, zone comparison finds some bogus differences, because the TTL we send to the DNS subsystem doesn't match the TTL we use when generating our local dump files. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=164635557
This commit is contained in:
parent
1ca6c95dc2
commit
2547313ef9
9 changed files with 105 additions and 63 deletions
|
@ -41,13 +41,4 @@ public class DnsUpdateConfigModule {
|
|||
public static Duration provideDnsUpdateTimeout() {
|
||||
return Duration.standardSeconds(30);
|
||||
}
|
||||
|
||||
/**
|
||||
* The DNS time-to-live (TTL) for resource records created by the registry.
|
||||
*/
|
||||
@Provides
|
||||
@Config("dnsUpdateTimeToLive")
|
||||
public static Duration provideDnsUpdateTimeToLive() {
|
||||
return Duration.standardHours(2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue