Commit Graph

914 Commits

Author SHA1 Message Date
Shreyas Zare
a7d1cfb6e8 DnsServer: fixed bug in reloading doh ssl cert. Implemented resolver task pool to allow handling large number of requests such that ongoing resolutions do not timeout due to large number of pending tasks. Fixed issue of unhandled exception in AcceptQuicConnectionAsync() causing DoS for DoQ service. Implemented support for including response rtt in response object. Updated cache auto prefresh feature to use resolver task pool. Code refactoring changes done. 2024-12-21 15:45:22 +05:30
Shreyas Zare
ecbaf29bce Zone: updated code to use default concurrency value for dictionary. 2024-12-21 15:39:52 +05:30
Shreyas Zare
9a2062ac14 StubZone: updated zone refresh feature to use dns server's resolver task pool. Implemented min refresh & min retry options. Code refactoring changes done. 2024-12-21 15:37:56 +05:30
Shreyas Zare
8da0e3728a SecondaryZone: updated zone refresh feature to use dns server's resolver task pool. Code refactoring changes done. 2024-12-21 15:36:37 +05:30
Shreyas Zare
ebdaa6fa11 minor code refactoring change. 2024-12-21 15:35:45 +05:30
Shreyas Zare
736f2b8c92 ForwarderZone: updated QueryRecords() to allow calling base method for CatalogZone. 2024-12-21 15:35:24 +05:30
Shreyas Zare
4bbb7f5e2d CatalogZone: updated QueryRecords() to allow querying for SOA record so that it works with bind. 2024-12-21 15:34:10 +05:30
Shreyas Zare
42c6497864 CacheZone: updated code to use default concurrency value for concurrent dictionary. 2024-12-21 15:33:06 +05:30
Shreyas Zare
b5d838ecde ApexZone: updated notify feature to use dns server's resolver task pool. Added GetZoneSoaRetry() method. 2024-12-21 15:31:56 +05:30
Shreyas Zare
a9639ff603 AuthZoneManager: added new options for min refresh and min retry values. Code refactoring changes done. 2024-12-21 15:29:17 +05:30
Shreyas Zare
db193e217c AuthZoneTree: fixed bug in FindNSec3ProofOfNonExistenceNxDomain() that caused infinite loop in some scenarios and removed cancellation code. 2024-12-21 15:27:39 +05:30
Shreyas Zare
ce8f1b0c7c DnsServer: updated RecursiveResolverBackgroundTaskAsync() to check if the cache response is from badcache and thus send a failure response in such case instead of sending checking disabled response from cache. 2024-12-02 18:27:55 +05:30
Shreyas Zare
72fdcbb71e CacheZoneManager: code refactoring changes. 2024-12-02 18:25:06 +05:30
Shreyas Zare
c214d0a99b DnsServer: Updated RecursiveResolverBackgroundTaskAsync() to fetch failure response from cache itself instead of generating it based on the exception. Updated PrepareRecursiveResolveResponse() to allow returning EDE in cached responses for stale answer cases. Updated StartDoHAsync() to check http/2 support on windows to avoid issues with older OS. 2024-11-30 13:15:31 +05:30
Shreyas Zare
9d5330fddc CacheZoneManager: Updated Query() to use the new Answer and NoDnssecAnswer properties for negative cache response. 2024-11-30 12:34:46 +05:30
Shreyas Zare
a63a12ea4a DnsApplicationAssemblyLoadContext: fixed issue caused when an assembly is already loaded in default context but is required for loading assembly in current context. Minor code refactoring done. 2024-11-23 17:52:16 +05:30
Shreyas Zare
fdcdfcb6d3 DnsServer: Updated ProcessDoHRequestAsync() to allow reading x-real-ip header for DNS-over-HTTPS with reverse proxy ACL check. 2024-11-23 13:10:04 +05:30
Shreyas Zare
bdf59b2bbb ZoneTree: updated FindZoneNode() to correctly handle wildcard case with ENT subdomain for queries that should return wildcard. 2024-11-23 13:08:58 +05:30
Shreyas Zare
524ad2d7f2 DnsApplicationAssemblyLoadContext: updated assembly loading code to separate the dependency resolver initialization to avoid dependency issues. 2024-11-23 13:06:33 +05:30
Shreyas Zare
50276dc216 DnsServer: updated ProcessDoHRequestAsync() to read client ip without private ip check and read x-real-ip header only for insecure http requests. 2024-11-16 17:22:57 +05:30
Shreyas Zare
85c0b39f6e DnsServer: implemented reverse proxy network ACL feature. 2024-11-16 13:39:20 +05:30
Shreyas Zare
f69ebc1f03 code refactoring changes done. 2024-11-16 13:14:48 +05:30
Shreyas Zare
8a98f32d34 DnsServer: fixed issue with DoH/3 not working caused due to kestral web server changes. Fixed issue in ProcessAPPAsync() that did not check for secondary forwarder. Updated DoH cache header to avoid caching issues after server upgrade. Code refactoring changes done. 2024-11-09 19:45:16 +05:30
Shreyas Zare
f7a7011225 AuthZoneManager: Updated LoadZoneFrom() to handle empty zone issue and unload the zone. Code refactoring changes done. 2024-10-26 17:33:07 +05:30
Shreyas Zare
493a44d443 StatsManager: Added missing dispose call for cleanup timer. Updated MaxStatFileDays property to do validation and control cleanup timer. 2024-10-26 17:29:48 +05:30
Shreyas Zare
c7ce7077c5 DnsServer: implemented support for custom real ip header for DoH. Implemented blocking answer ttl feature. Fixed minor issue with rate limiting detection logging feature. Fixed minor issue with DoH start process. Added missing validation checks for optional protocol port properties. Code refactoring changes done. 2024-10-19 16:58:04 +05:30
Shreyas Zare
b6b4877c91 StubZone: updated error message description. 2024-10-19 16:53:19 +05:30
Shreyas Zare
fa800a406a SecondaryZone: Updated RefreshZoneAsync() to do SOA probe for all cases except for proprietary zone types. Updated Notify to prevent using option valid only for catalog zones. Other minor changes done. 2024-10-19 16:52:52 +05:30
Shreyas Zare
7cf8e14c33 PrimaryZone: fixed issue in GetMaxRecordTtl() and GetMaxRRSigTtl() to check all records in the zone. Updated Notify property to prevent using the option that is valid only for catalog zones. Code refactoring changes done. 2024-10-19 16:51:04 +05:30
Shreyas Zare
fb22196bed ForwarderZone: overrided Disabled property to control notify. Updated Notify property to only allow catalog zones to use new notify option. 2024-10-19 16:49:17 +05:30
Shreyas Zare
5361533ae0 AuthZoneInfo: updated code to support new notify option for catalog zones. 2024-10-19 16:47:48 +05:30
Shreyas Zare
b5d9f46423 ApexZone: implemented new notify option for separate name servers for catalog and member zones for use with catalog zones. 2024-10-19 16:45:28 +05:30
Shreyas Zare
3f74d95d70 BlockListZoneManager: updated UpdateServerDomain() and Query() to support blocking answer ttl feature. 2024-10-19 16:43:58 +05:30
Shreyas Zare
58fa6c9580 BlockedZoneManager: updated UpdateServerDomain() to support blocking answer ttl feature. 2024-10-19 16:42:00 +05:30
Shreyas Zare
cd64c04a1e AuthZoneManager: updated UpdateServerDomain() to support blocking answer ttl feature. Added GetZones() and GetCatalogZones() methods. Removed GetZonesPage() method and moved pagination task to api code. 2024-10-19 16:41:17 +05:30
Shreyas Zare
9ce324a377 DnsServer: fixed null ref issue in ProcessZoneTransferQueryAsync() by removing log entries that are not really required. 2024-09-28 16:13:43 +05:30
Shreyas Zare
418ccb9a7f DnsServer: updated forwarding code to ignore forwarder domain resolution when proxy is configured. Updated StopAsync() and StopDoHAsync() to ignore any errors while stopping. 2024-09-23 19:09:25 +05:30
Shreyas Zare
16623101ce DnsServer: Updated ProcessAuthoritativeQueryAsync() to use ProcessRecursiveQueryAsync() call for blocking support. 2024-09-21 17:47:32 +05:30
Shreyas Zare
e834bd9cf0 ResolverDnsCache: updated implementation to prefer auth zone response over app response. 2024-09-21 12:53:06 +05:30
Shreyas Zare
565b6d53d0 DnsServer: updated ProcessZoneTransferQueryAsync() to check for secondary catalog properties and update notify failed list by removing current client from it. Updated validation checks in properties. Code refactoring changes done. 2024-09-21 12:51:58 +05:30
Shreyas Zare
d73f971d02 SubDomainZone: minor code refactoring. 2024-09-21 12:49:18 +05:30
Shreyas Zare
764edb1bec StubZone: updated CreateAsync() to add support for ignoreSoaFailure option. Added validation for PrimaryNameServerAddresses property. Code refactoring changes done. 2024-09-21 12:48:58 +05:30
Shreyas Zare
0b018e5e10 SecondaryZone: Updated RefreshZoneAsync() to probe with SOA only before AXFR. Code refactoring changes done. 2024-09-21 12:46:59 +05:30
Shreyas Zare
14f1a00222 SecondaryForwarderZone: minor changes done. 2024-09-21 12:45:18 +05:30
Shreyas Zare
12717ddf33 SecondaryCatalogZone: updated implementation to support minimal provisioning for IXFR. Updated implementation to store global custom properties in secondary catalog zone itself. Code refactoring changes done. 2024-09-21 12:44:42 +05:30
Shreyas Zare
bbe44d1f9c PrimaryZone: updated Disabled property implementation. 2024-09-21 12:40:48 +05:30
Shreyas Zare
364f8b33d5 AuthZoneInfo: Updated file format for Secondary, SecondaryForwarder, and SecondaryCatalog to support additional parameters. 2024-09-21 12:40:18 +05:30
Shreyas Zare
ca6873661c AuthZone: removed protected from disabled variable. 2024-09-21 12:38:55 +05:30
Shreyas Zare
7f385d44e8 ApexZone: added SecondaryCatalogZone property. Added RemoveFromNotifyFailedList() method to remove name servers from failed list. Updated Disabled property implementation to allow automatic remove and add as member zone from catalog. Updated validation code for properties. Code refactoring changes done. 2024-09-21 12:38:18 +05:30
Shreyas Zare
c721a0ba33 AuthZoneManager: Added GetApexZone() method. Updated CreateStubZoneAsync() to support ignoreSoaFailure option. Updated AddCatalogMemberZone() to support ignoreValidationErrors option. Fixed minor issues in ConvertZoneType() for SecondaryForwarder zone. Minor code refactoring done. 2024-09-21 12:34:24 +05:30