Commit Graph

563 Commits

Author SHA1 Message Date
Shreyas Zare
c1a30ce5a0 AuthZoneInfo: added notify failed and sync failed properties. 2022-05-14 13:35:59 +05:30
Shreyas Zare
46a86001c4 AuthZone: removed IDisposable implementation. 2022-05-14 13:35:28 +05:30
Shreyas Zare
8a2c5b55ba AuthZoneNode: minor change. 2022-05-14 13:34:54 +05:30
Shreyas Zare
14fd509929 ApexZone: Moved NOTIFY code here for primary and secondary zones. Added AllowBothZoneAndSpecifiedNameServers and BothZoneAndSpecifiedNameServers options. Added sync failed and notify failed properties. 2022-05-14 13:34:18 +05:30
Shreyas Zare
45933830f7 ResolverPrefetchDnsCache: updated implementation to use base class's QueryClosestDelegation(). 2022-05-08 15:33:12 +05:30
Shreyas Zare
265210218f ResolverDnsCache: updated implementation to add QueryClosestDelegation(). 2022-05-08 15:32:34 +05:30
Shreyas Zare
33eb5d2266 DnsServer: updated PrepareRecursiveResolveResponse() to handle ANY response correctly. 2022-05-08 15:31:54 +05:30
Shreyas Zare
cda4d493ac PrimaryZone: updated RevokeKskDnsKeys() to fix issue of duplicate DNSKEY entry into zone history. 2022-05-08 15:31:06 +05:30
Shreyas Zare
2be4a3ed5d CacheZone: updated SetRecords() to set ParentSideTtl values for new NS records from existing NS records for use with NS revalidation. Updated QueryRecords() to remove DS from ANY response. 2022-05-08 15:30:00 +05:30
Shreyas Zare
df02416e30 CacheZoneManager: updated CacheRecords() to not cache synthesized CNAME records. Updated QueryClosestDelegation() to return DS records. 2022-05-08 15:27:54 +05:30
Shreyas Zare
3a71cd38ad CacheZoneTree: updated GetClosestValuesForZone() implementation as per new definition. 2022-05-08 15:26:20 +05:30
Shreyas Zare
016ff144aa AuthZoneTree: updated GetClosestValuesForZone() implementation as per new definition. 2022-05-08 15:26:03 +05:30
Shreyas Zare
963565e5a5 ZoneTree: updated FindZoneNode() to fix minor issues and updated GetClosestValuesForZone() definition. 2022-05-08 15:24:59 +05:30
Shreyas Zare
b86fa6633f ZoneTree: updated FindZone() to clear closestSubDomain when closestAuthority value changes. 2022-04-30 18:14:56 +05:30
Shreyas Zare
eb720faaee AuthZoneTree: updated GetClosestValuesForZone() to fix issue with getting delegation for the zone value. 2022-04-30 18:14:07 +05:30
Shreyas Zare
a879af9caa DnsServer: updated PrepareRecursiveResolveResponse() & RemoveOPTFromAdditional() to remove DNSSEC records when not requested. Updated CacheMaintenanceTimerCallback() to force garbage collection after removing cache records to quickly free memory. 2022-04-30 12:21:54 +05:30
Shreyas Zare
69cb6eb0c7 CacheZoneManager: Updated ResolveAdditionalRecords() to add RRSIG for additional records. Updated Query() to return response with EDNS only when request had EDNS. 2022-04-30 12:18:33 +05:30
Shreyas Zare
317310579c DnsServer: updated ProcessANAMEAsync() to set last used on value when returning authority records for ANAME response. 2022-04-24 17:28:17 +05:30
Shreyas Zare
b24be82552 AuthZoneManager: updated GetReferralResponse() to set last used on value for stub authority records. 2022-04-24 17:23:54 +05:30
Shreyas Zare
32169d9313 DnsServer: Updated RecursiveResolveAsync() forwarder implementation to use ConditionalForwardingZoneCut option to trim CNAME records in response to allow the DNS server to query each CNAME separately for cases when conditional forwarder is configured for a CNAME domain. 2022-04-23 17:57:46 +05:30
Shreyas Zare
80f1f75526 ResolverDnsCache: implemented IDnsCache.CacheResponse() changes. 2022-04-23 17:55:50 +05:30
Shreyas Zare
c2a3d38beb AuthZone: updated FilterDisabledRecords() and AppendRRSigTo() to set last used value for records. 2022-04-23 17:55:14 +05:30
Shreyas Zare
9dd2364bfe CacheZoneManager: Implemented maximum entries feature. 2022-04-23 17:54:14 +05:30
Shreyas Zare
96c66ace10 CacheZone: updated ValidateRRSet(), SetRecords() to set cached record's LastUsedOn value. Updated SetRecords() to return true when record was added. Updated RemoveExpiredRecords() to return number of entries removed. Added RemoveLeastUsedRecords() to remove least used entries by given cutoff. Added TotalEntries property. 2022-04-23 17:53:04 +05:30
Shreyas Zare
1b00b0ba09 CacheZoneTree: renamed TryRemove() to TryRemoveTree() and added out int to return number of removed entries from the all the cache zones. 2022-04-23 17:50:10 +05:30
Shreyas Zare
181e57d194 DnsResourceRecordInfo: added LastUsedOn non-serialized property. 2022-04-23 17:48:47 +05:30
Shreyas Zare
4bd1488d27 DnssecPrivateKey: added validation check in RolloverDays. 2022-04-23 17:47:03 +05:30
Shreyas Zare
c282a5d56f PrimaryZone: updated RevokeKskDnsKeys() and UnpublishDnsKeys() to fix issue of missing dnskey in zone history. 2022-04-23 17:45:55 +05:30
Shreyas Zare
2e3b153a03 DnsServer: updated ProcessBlockedQuery() to handle other type requests correctly. Updated RecursiveResolveAsync() to handle exceptions to add exdended dns errors to failure responses when forwarder is configured. 2022-04-17 16:41:12 +05:30
Shreyas Zare
bc9803c18a BlockListZoneManager: updated Query() to handle SOA request correctly. 2022-04-17 16:34:38 +05:30
Shreyas Zare
11600e6699 PrimaryZone: fixed bug causing issue with ixfr history when soa record is updated with out of date serial. 2022-04-17 16:33:40 +05:30
Shreyas Zare
e1dc278ff3 PrimaryZone: updated GetZoneSoaMinimum() to get the minimum value only. Updated SetRecords() to use the minimum property directly. 2022-04-09 17:33:55 +05:30
Shreyas Zare
64fcbf3525 PrimaryZone: added RefreshNSec() and RefreshNSec3() to allow refreshing the records when SOA minimum TTL value changes. 2022-04-03 16:03:29 +05:30
Shreyas Zare
64415c2fc6 AuthZone: Updated GetUpdatedNSecRRSet() and GetUpdatedNSec3RRSet() to compare TTL values too for deciding if new records should be used. 2022-04-03 16:02:14 +05:30
Shreyas Zare
648a28cc2e DnsServer: Updated ProcessANAMEAsync() to correctly handle NO DATA and error responses. 2022-03-29 19:27:58 +05:30
Shreyas Zare
05a1853734 AuthZoneManager: updated Query() to return SOA in authority for ANAME queries to allow DNS server to respond with NO DATA response correctly. 2022-03-29 19:26:30 +05:30
Shreyas Zare
a39162749c DnsResourceRecordInfo: fixed issue of missing null check causing error when saving SOA record without comments or when changing server name. 2022-03-27 14:41:37 +05:30
Shreyas Zare
9d69359d66 PrimaryZone: Added validation to prevent disabling records for signed zones. Removed zskRolloverDays implementation and implemented rolloverDays for DnssecPrivateKey. Updated SignRRSet() to not sign NS refererrer records. 2022-03-26 11:48:52 +05:30
Shreyas Zare
e30d451c6b PrimarySubDomainZone: Added validation to prevent disabling records for signed zones. 2022-03-26 11:45:28 +05:30
Shreyas Zare
39f60523b3 ForwarderZone: Updated constructor to allow setting FWD record comments. 2022-03-26 11:44:36 +05:30
Shreyas Zare
45aa092620 AuthZoneInfo: Removed zskRolloverDays related code to revert to previous version. 2022-03-26 11:43:59 +05:30
Shreyas Zare
70be2f4fff BlockedZoneManager: implemented Flush(). 2022-03-26 11:42:45 +05:30
Shreyas Zare
7eb773b0eb AllowedZoneManager: implemented Flush(). 2022-03-26 11:42:23 +05:30
Shreyas Zare
dad7bbcac6 AuthZoneManager: Updated CreateForwarderZone() to allow setting comments for FWD record. Updated code for DNSSEC private key related changes and other minor changes done. 2022-03-26 11:41:57 +05:30
Shreyas Zare
ace736b1f1 AuthZoneTree: Updated FindNSecProofOfNonExistenceNxDomain() for the DnsNSECRecordData.GetWildcardFor() changes. 2022-03-26 11:40:13 +05:30
Shreyas Zare
fc98e63e05 ZoneTree: refactored param names for KeysMatch() and updated logic to check wildcard only for main key. Fixed minor bug in IsKeySubDomain(). Updated FindZoneNode() to correctly handle wildcard cases. 2022-03-26 11:39:05 +05:30
Shreyas Zare
8b5a4af2f9 DnsResourceRecordInfo: Added validation for Comments. 2022-03-26 11:36:42 +05:30
Shreyas Zare
09f3f90ae7 DnssecPrivateKey: implemented rolloverDays option for each private key. 2022-03-26 11:35:45 +05:30
Shreyas Zare
64dcb48f08 PrimaryZone: fixed issues in key rollover with multiple active keys. 2022-03-13 22:50:16 +05:30
Shreyas Zare
d0146d4229 CacheZone: Updated SetRecords() to use DnsSpecialCacheRecord.IsFailureOrBadCache in condition check to cover both failure and bad cache cases. 2022-03-13 20:54:04 +05:30