Skip to content
Snippets Groups Projects
Commit a5ae76b3 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Setting default zonefile sync interval to 0.

refs #158
parent 479eb094
No related branches found
No related tags found
1 merge request!132Serial Policy
......@@ -976,10 +976,10 @@ zones:
SET_NUM(new_config->notify_timeout, $3.i, 1, INT_MAX, "notify-timeout");
}
| zones DBSYNC_TIMEOUT NUM ';' {
SET_NUM(new_config->dbsync_timeout, $3.i, 1, INT_MAX, "zonefile-sync");
SET_NUM(new_config->dbsync_timeout, $3.i, 0, INT_MAX, "zonefile-sync");
}
| zones DBSYNC_TIMEOUT INTERVAL ';' {
SET_NUM(new_config->dbsync_timeout, $3.i, 1, INT_MAX, "zonefile-sync");
SET_NUM(new_config->dbsync_timeout, $3.i, 0, INT_MAX, "zonefile-sync");
}
| zones DNSSEC_ENABLE BOOL ';' { new_config->dnssec_enable = $3.i; }
| zones DNSSEC_KEYDIR TEXT ';' { new_config->dnssec_keydir = $3.t; }
......
......@@ -48,7 +48,7 @@
#define CONFIG_DEFAULT_PORT 53
#define CONFIG_NOTIFY_RETRIES 5 /*!< 5 retries (suggested in RFC1996) */
#define CONFIG_NOTIFY_TIMEOUT 60 /*!< 60s (suggested in RFC1996) */
#define CONFIG_DBSYNC_TIMEOUT (60*60) /*!< 1 hour. */
#define CONFIG_DBSYNC_TIMEOUT 0 /*!< Sync immediately. */
#define CONFIG_REPLY_WD 10 /*!< SOA/NOTIFY query timeout [s]. */
#define CONFIG_HANDSHAKE_WD 10 /*!< [secs] for connection to make a request.*/
#define CONFIG_IDLE_WD 60 /*!< [secs] of allowed inactivity between requests */
......
......@@ -43,7 +43,6 @@
/* Constants. */
#define ZONES_JITTER_PCT 10 /*!< +-N% jitter to timers. */
#define IXFR_DBSYNC_TIMEOUT (60*1000) /*!< Database sync timeout = 60s. */
#define AXFR_BOOTSTRAP_RETRY (30*1000) /*!< Interval between AXFR BS retries. */
#define AXFR_RETRY_MAXTIME (10*60*1000) /*!< Maximum interval 10mins */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment