Commit Graph

886 Commits

Author SHA1 Message Date
Shreyas Zare
aadfb7cdec DnsWebService: Implemented _webServiceHttpEP to keep track of correct http web server ep. Added dns app store support api. Using SocketsHttpHandler in CheckForUpdateAsync(). Code refactoring done. 2021-04-10 14:14:28 +05:30
Shreyas Zare
f5da78c579 DnsServer: reusing memory stream in ReadUdpRequestAsync(). Updated ProcessAPPAsync() to return server failure when app or class path is not found. Updated CachePrefetchRefreshTimerCallback() and RefreshCacheAsync() to prevent double refresh attempts. Updated CachePrefetchRefreshTimerCallback() to use threadpool tasks for better concurrency. Updated CacheMaintenanceTimerCallback() to reset due time in finally for next interval callback and using sync lock. Fixed bug in UpdateThisServer() logic. 2021-04-10 13:58:48 +05:30
Shreyas Zare
be9ff3ea75 AuthZoneManager: minor code refactoring. 2021-04-10 13:44:54 +05:30
Shreyas Zare
fdb1ec8cc8 BlockListZoneManager: using SocketsHttpHandler. 2021-04-10 13:44:12 +05:30
Shreyas Zare
4dfba23dcf CacheZoneManager: using specific capacity in CacheRecords(). 2021-04-10 13:43:35 +05:30
Shreyas Zare
265d436dec AuthZone: minor code refactoring. 2021-04-10 13:42:46 +05:30
Shreyas Zare
8268bfdb30 CacheZone: using specific capacity for memory optimization. minor code refactoring done. 2021-04-10 13:38:57 +05:30
Shreyas Zare
ac7c95eedf Zone: memory optimization done by using specific capacity for concurrent dictionary. 2021-04-10 13:37:57 +05:30
Shreyas Zare
6df2d0ae37 ZoneTree: code refactoring done. 2021-04-10 13:36:54 +05:30
Shreyas Zare
4f52a2723b DnsApplicationManager: code refactoring done. 2021-04-10 13:36:27 +05:30
Shreyas Zare
41e84d0fa9 DnsApplication: code refactoring done. 2021-04-10 13:35:59 +05:30
Shreyas Zare
36530ccf55 DhcpServer: code refactoring done. 2021-04-10 13:35:24 +05:30
Shreyas Zare
251e4e10bf Scope: code refactoring done. 2021-04-10 13:34:02 +05:30
Shreyas Zare
bba3a71f5d OptionOverloadValue: added flags attribute. 2021-04-10 13:32:56 +05:30
Shreyas Zare
bef86060eb ClientIdentifierOption: class made public 2021-04-10 13:32:35 +05:30
Shreyas Zare
37256bb8ec ClientFullyQualifiedDomainNameFlags: added flags attribute. 2021-04-10 13:32:15 +05:30
Shreyas Zare
95d5da9559 DnsWebService: removed https timeout code in TlsToHttpTunnelAsync() and letting the http server to do timeout to avoid getting connection reset when downloading files. 2021-04-03 12:49:34 +05:30
Shreyas Zare
a6f839d68c DnsServer: updated cache maintenance timers to 15 mins. Updated sequence of quering for allowed and blocked zones since the old sequence was not optimal for the current state of code. Added RCODE check in RecursiveResolveAsync() before returning the response so that serve stale works when failure response is received. 2021-04-03 12:47:45 +05:30
Shreyas Zare
7975f07f42 ResolverPrefetchDnsCache: fixed prefetch query handling so that auth zone is also queried along with cache zone to get the most relevant closest name servers. 2021-04-03 12:33:32 +05:30
Shreyas Zare
2dd9b89e74 AuthZoneManager: implemented QueryClosestDelegation(). 2021-04-03 12:32:23 +05:30
Shreyas Zare
f8230ce7a1 CacheZoneManager: updated code to require DnsServer reference to read serve stale option. 2021-04-03 12:31:51 +05:30
Shreyas Zare
68a0864938 CacheZone: updated SetRecords() to consider if serve stale is enabled or not. Updated RemoveExpiredRecords() implementation to consider serve stale and for code optimization. 2021-04-03 12:30:46 +05:30
Shreyas Zare
c79512886c DnsServer: updated ANY request handling in ProcessQueryAsync(). 2021-03-29 15:28:08 +05:30
Shreyas Zare
557df24ade DnsServer: minor optimizations done. 2021-03-27 20:16:15 +05:30
Shreyas Zare
2cd08843cd DnsWebService: trying to start web service on 127.0.0.1 when it fails to start with default hostname. 2021-03-27 19:29:00 +05:30
Shreyas Zare
33246c742e DnsWebService: updated TlsToHttpTunnelAsync() code to allow injecting X-Real-IP header to allow logging the remote user's ip address when using https. Updated StartDnsWebService() to start multiple accept tasks. 2021-03-27 19:12:48 +05:30
Shreyas Zare
1ef40427b2 webapp: added add record overwrite option html. 2021-03-27 16:50:02 +05:30
Shreyas Zare
7b5db4e557 minor changes 2021-03-27 16:49:28 +05:30
Shreyas Zare
faca53432f webapp: implemented add record overwrite option. minor refactoring changes. 2021-03-27 16:49:14 +05:30
Shreyas Zare
fd2afc7928 webapp: implemented app version api parameter. 2021-03-27 16:47:52 +05:30
Shreyas Zare
f93ae4f2df DnsWebService: ignoring io exception in TlsToHttpTunnelAsync(). Added overwrite option in AddRecord() method. Implemented version parameter in ListApps(). 2021-03-27 16:47:02 +05:30
Shreyas Zare
1378845b2c DnsServer: ignoring incomplete udp requests in ReadUdpRequestAsync(). Updated ProcessANAMEAsync() to allow supporting multiple ANAME record processing for a domain concurrently. Minor code refactoring done. 2021-03-27 16:42:38 +05:30
Shreyas Zare
5dfaad2c92 AuthZoneManager: added GetRecords() method to directly get the records without querying. 2021-03-27 16:37:46 +05:30
Shreyas Zare
bdf40ac1aa DnsApplication: added version for app. 2021-03-27 16:36:32 +05:30
Shreyas Zare
4db2098b0f CacheZoneManager: added validation for '*' in CacheRecords() to prevent abuse due to caching wildcard response. Fixed null ref exception in GetAdditionalRecords(). 2021-03-27 16:35:07 +05:30
Shreyas Zare
a2da395f69 ZoneTree: fixed index out of bound exception in FindNodeValue(). 2021-03-27 16:33:32 +05:30
Shreyas Zare
ab7dff2025 DnsWebService: updated zone api code to support managing multiple ANAME records. 2021-03-21 20:46:30 +05:30
Shreyas Zare
4b58b412f7 DnsServer: updated ProcessANAMEAsync() to resolve multiple ANAME records concurrently. Fixed ANAME resolution bug caused by checking first RR. 2021-03-21 20:45:33 +05:30
Shreyas Zare
c0479442d5 AuthZoneManager: allowing to update specific ANAME record in RR set. 2021-03-21 20:39:45 +05:30
Shreyas Zare
9c5c15cc97 AuthZone: allowing to add multiple ANAME records. 2021-03-21 20:39:11 +05:30
Shreyas Zare
4fa4de2838 webapp: added html text to explain the block list zone's allow list url option. 2021-03-21 20:06:07 +05:30
Shreyas Zare
23031248c6 DnsWebService: implemented block list zone's allow list feature. 2021-03-21 20:05:06 +05:30
Shreyas Zare
8de579fbdf BlockListZoneManager: implemented allow list url feature. 2021-03-21 20:02:07 +05:30
Shreyas Zare
0690ceddf0 webapp: updated app config modal text. 2021-03-21 18:48:24 +05:30
Shreyas Zare
429cee52dd webapp: added update app js code. 2021-03-21 17:33:03 +05:30
Shreyas Zare
d319c903e9 webapp: added update app model html code. 2021-03-21 17:31:12 +05:30
Shreyas Zare
6572fadaf3 DnsWebService: added app update api support. Updated WriteRecordsAsJson() to show hidden RDATA of special records. 2021-03-21 17:30:30 +05:30
Shreyas Zare
5caf6e9a71 DnsApplicationManager: handled exception in UnloadAllApplications() for each app dispose. Added UpdateApplicationAsync() to update existing app and reload it. 2021-03-21 17:27:59 +05:30
Shreyas Zare
193373ffee DhcpServer: updated code to use async socket calls from .net5. 2021-03-21 17:16:39 +05:30
Shreyas Zare
e227eeffab webapp: fixed bug in checkForWebConsoleRedirection() causing redirection when using default ports. 2021-03-21 17:14:50 +05:30