Commit Graph

76 Commits

Author SHA1 Message Date
Shreyas Zare
bab78ec014 DnsWebService: ResolveQuery() using only 1 retry and 10 sec timeout to help in debugging issues with DNS Server response times. 2019-03-30 17:03:00 +05:30
Shreyas Zare
4e7b40e534 DnsWebService: fixed minor issues. Added record sorting by name and type. Refactoring done. 2019-03-23 13:21:20 +05:30
Shreyas Zare
9aa347ed08 DnsWebService: removed warning log for common name mismatch in LoadTlsCertificate() since this will create confusion when using cert with Subject Alternate Names extension. 2019-03-09 16:00:50 +05:30
Shreyas Zare
457cfacb54 DnsWebService: removed DoH implementation from web service and moved it to DnsServer class so that the admin web console is not exposed due to reverse proxy misconfiguration. Added validation checks for domain parameter in api calls. Minor refactoring done. 2019-03-09 15:38:59 +05:30
Shreyas Zare
82f8f22e4c added X-Real-IP support to get client IP from reverse proxy. 2019-03-03 19:29:21 +05:30
Shreyas Zare
1cedea6391 web service multi threaded accept implemented. 2019-03-03 18:46:57 +05:30
Shreyas Zare
d4ac5130a4 DnsWebService: implemented DoT and DoH support API. Implemented standalone non TLS terminited DoH support directly on the web service. 2019-03-02 20:08:14 +05:30
Shreyas Zare
5a904eb0d5 removed base64 encoding for api parameter. 2019-02-16 15:23:42 +05:30
Shreyas Zare
37017e669f set http listener to use localhost prefix to corretly allow running it for non-admin users. 2019-02-10 14:16:27 +05:30
Shreyas Zare
b73f5c7a46 DnsWebService: concurrent block list file loading done in LoadBlockLists() to save loading time. 2019-02-02 18:28:59 +05:30
Shreyas Zare
5cbe4effd0 fixed issue that got added earlier. 2019-02-02 14:01:14 +05:30
Shreyas Zare
2beb087f12 DnsWebService: implemented import and export api for allowed zones and custom blocked zones. Minor change done to set content length to avoid chunking. Failed attempt check excluded for default password to avoid getting locked out due to auto login by web page refreshing. 2019-02-02 12:41:46 +05:30
Shreyas Zare
058a485522 brute force login attempts blocking mechanism added. 2019-01-27 20:04:13 +05:30
Shreyas Zare
580413f044 added validation checks for api calls. 2019-01-27 19:15:50 +05:30
Shreyas Zare
6e6117df04 get clean version number for UI display. 2019-01-27 18:11:37 +05:30
Shreyas Zare
b68119e22e Implemented feature to store TXT record in blocked zone that tells which list the domain was in. Api updated to allow only add/delete/flush operations on custom block zone such that the block list zones are not affected. 2019-01-27 17:03:02 +05:30
Shreyas Zare
e751dd3e18 ignoring error 2019-01-14 11:26:57 +05:30
Shreyas Zare
cfc1b57ee4 moved unhandled exception logging to log manager. 2019-01-14 11:11:51 +05:30
Shreyas Zare
1ca57a9f1b DnsWebService: compatibility code added to disable zones from dns config v6. 2019-01-13 16:04:50 +05:30
Shreyas Zare
fbe22281cc DnsWebService: Loading allowed and blocked zones in thread pool on start to speed up server startup. Updating server domain name in thread pool to allow the zone SOA update task to run in background. 2019-01-13 15:26:22 +05:30
Shreyas Zare
bbb1cb427b minor code refactoring done 2019-01-13 13:31:30 +05:30
Shreyas Zare
9d8ed065b5 DnsWebService: using authoritative zone's ServerDomain property instead of _serverDomain. Code refactoring and minor fixes done. 2019-01-13 13:25:08 +05:30
Shreyas Zare
7dbc5b29ee DnsWebService: Zone file changes done to save the disable state info in same file. Implemented resource record disable feature. Code refactoring done. 2019-01-06 16:52:53 +05:30
Shreyas Zare
3ae358e892 Added tcp protocol indication when logging with end points. 2019-01-05 15:23:11 +05:30
Shreyas Zare
569b00dbe1 fixed issue of download log option giving truncated file with fixed 2mb limit by making the limit option configurable. 2019-01-05 15:14:15 +05:30
Shreyas Zare
38c15ee87c DnsWebService: service start and stop related changes done to work with most platforms. 2018-12-30 16:45:41 +05:30
Shreyas Zare
3c09a61fd4 DnsWebService: custom dns server local addresses feature implemented. Code refactoring done to remove unnecessary value assignments. 2018-12-29 16:39:59 +05:30
Shreyas Zare
3d0bd151da DnsWebService: added logging for unhandled exception using AppDomain.CurrentDomain.UnhandledException. Made change to load StatsManager in Start(). 2018-12-23 19:19:32 +05:30
Shreyas Zare
89906ceb70 fixed issue caused when web service port changes breaking the custom block list url. 2018-12-15 15:02:37 +05:30
Shreyas Zare
c26017755d DnsWebService: Implemented cache hit feature. Removed BufferedStream usage since FileStream does internal buffering. 2018-12-09 17:06:30 +05:30
Shreyas Zare
50f520bc13 DnsWebService: updated logging for block list with additional details. 2018-11-18 18:46:32 +05:30
Shreyas Zare
496f0f3465 DnsWebService: fixed issue with non persistent custom domain added to block zone. 2018-11-18 16:51:56 +05:30
Shreyas Zare
f95b833df0 DnsWebService: added error logging for service start and stop events. 2018-11-17 13:07:14 +05:30
Shreyas Zare
7d8bfc1671 DnsWebService: added X-Robots-Tag http header to preventing search engines from indexing web portal. 2018-11-17 12:29:08 +05:30
Shreyas Zare
cb55ceedcf DnsWebService: Implemented changes to set higher timeout value when proxy is enabled. Implemented block list update retry mechanism. 2018-11-04 15:20:28 +05:30
Shreyas Zare
21c5cfdb5c platform not supported issue handled. 2018-10-13 15:11:38 +05:30
Shreyas Zare
383d2928f7 DnsWebService: fixed issue with SetDnsSettings(). 2018-10-13 11:51:59 +05:30
Shreyas Zare
968683f6f9 DnsWebService: dns client change done to fix DNS-over-TLS issue. 2018-10-07 01:18:26 +05:30
Shreyas Zare
30cf556c90 DnsWebService: block zone set record optimization done to load block zone quickly. 2018-10-06 16:10:03 +05:30
Shreyas Zare
a2e8f7ff5e DnsWebService: Implemented multiple block list url support. Added total allowed & block zones stats. Implemented allowed zone api. In memory serialization done for zone and config saving to avoid overwriting file on disk with corrupt data. 2018-10-05 23:57:26 +05:30
Shreyas Zare
cd4340a2c1 DnsWebService: adding 0.0.0.0 A record to block zone so that the response gets cached and less requests hit the server. 2018-10-01 23:06:27 +05:30
Shreyas Zare
422f827254 DnsWebService: reimplemented obsolete file format support to avoid issues when upgraded from older versions. 2018-09-30 23:43:04 +05:30
Shreyas Zare
38333b14d6 DnsWebService: implemented getStats api with type parameter. 2018-09-30 23:23:06 +05:30
Shreyas Zare
b5abefa65e minor dashboard chart enhancements. 2018-09-30 13:44:57 +05:30
Shreyas Zare
cd660f2db3 DnsWebService: implemented StatsManager and getStats api. 2018-09-30 00:23:37 +05:30
Shreyas Zare
83ca65d722 DnsWebService: added missing StopBlockListUpdateTimer() when server stops. 2018-09-22 20:16:31 +05:30
Shreyas Zare
5bacfe7ab5 DnsWebService: Updated block list timer initial interval to 5 sec so that settings get applied quickly. Flushing blocked zone when block list settings are updated. Added missing save block zone file after flushing. 2018-09-22 15:40:21 +05:30
Shreyas Zare
6ddaa7ad48 DnsWebService: Added blocked zone api. Blocked zone file management done. Automatic block list update from URL feature added. 2018-09-22 15:04:56 +05:30
Shreyas Zare
b4022545cd DnsWebService: AcceptWebRequestAsync() error logging added. Flush cache logging added. Fixed update check bug which was always marking updateAvailable as false due to missing check. Password reset process added. Web service stop process changed to use thread abort. 2018-09-15 13:40:29 +05:30
Shreyas Zare
3d329b9f27 DnsWebService: removed obsolete code usage. Using simple dns cache for recursive resolve queries. 2018-08-11 12:04:46 +05:30