-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
43 lines (36 loc) · 1.56 KB
/
Copy pathconfig.php
File metadata and controls
43 lines (36 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* DNS Sync Validator — Configuration
*
* Adjust these values to tune scanner behavior without touching core logic.
*
* Copyright (c) 2026 Brad Boegler <bradthx@gmail.com>
* GNU General Public License v3.0
*/
// DNS servers and CSV path are defined in config.local.php (not committed to git).
// Copy config.local.php.example to config.local.php and fill in your values.
$localConfig = __DIR__ . '/config.local.php';
if (!file_exists($localConfig)) {
die('config.local.php not found. Copy config.local.php.example and fill in your server details.');
}
require_once $localConfig;
// Path to the comma-separated input file (domain,host,type,ttl,value)
// File must be sorted by domain+host+type for correct grouping
define('CSV_FILE', __DIR__ . '/domain_list.csv');
// Microseconds to sleep between each record group (2 dig calls per group).
// 10000 = 10ms → ~100 groups/sec (excluding actual query time)
// 50000 = 50ms → ~20 groups/sec
// 0 = no throttle (maximum speed)
define('THROTTLE_USEC', 10000);
// dig timeout per query (seconds) and retry count
define('DIG_TIMEOUT_SEC', 5);
define('DIG_TRIES', 2);
// How often the dashboard polls for new data (seconds)
define('REFRESH_INTERVAL', 10);
// How often the scanner flushes results to disk (every N groups)
define('FLUSH_EVERY', 100);
// Runtime data directory
define('DATA_DIR', __DIR__ . '/data');
define('RESULTS_FILE', DATA_DIR . '/results.json');
define('PID_FILE', DATA_DIR . '/scan.pid');
define('STOP_SIGNAL_FILE', DATA_DIR . '/stop_signal');