Commit Graph

541 Commits

Author SHA1 Message Date
Shreyas Zare
fe8da4e5c8 ResolverPrefetchDnsCache: updated class to inherit ResolverDnsCache and allow using auth zone for recursive resolution. 2020-06-27 11:58:37 +05:30
Shreyas Zare
c74acc6540 ResolverDnsCache: added class to allow recursive resolver to be able to query auth zone too. 2020-06-27 11:57:52 +05:30
Shreyas Zare
920200c505 AuthZoneManager: removed code that added glue records from SOA for zone transfer output in QueryZoneTransferRecords(). Updated SyncRecords() to allow root zone to respond for A or AAAA records for *.root-servers.net records and fixed name comparison issue. UpdateRecord() removed code for updating glue records for NS since secondary and stub NS records must not be changed. Query() updated the sequence of checking for delegation. Updated LoadZoneFrom() to delete zone if it fails to load. 2020-06-27 11:56:40 +05:30
Shreyas Zare
6c25e9498e ForwarderZone: added SetRecords() and AddRecord() methods with validation checks. 2020-06-27 11:51:43 +05:30
Shreyas Zare
c29424f9c3 StubZone: using GetPrimaryNameServerAddresses() in RefreshTimerCallback(). Code refactoring done. Added validation checks in SetRecords(). 2020-06-27 11:50:16 +05:30
Shreyas Zare
58f592d3b6 SecondaryZone: RefreshTimerCallback() code refactoring done. Updated SetRecords() to copy glue records for SOA with validations. 2020-06-27 11:46:43 +05:30
Shreyas Zare
9e78fbca34 PrimaryZone: using GetSecondaryNameServerAddresses() call. Updated SetRecords() to remove any attached info data. 2020-06-27 11:45:12 +05:30
Shreyas Zare
06694b0eb2 AuthZone: updated implementation to get secondary name server addresses. Fixed SyncRecords() to allow syncing root zone correctly and to avoid overwriting glue records for SOA. Removed UpdateGlueAddresses(). Fixed typo bug in QueryRecords(). 2020-06-27 11:43:58 +05:30
Shreyas Zare
f22972abd9 CacheZone: fixed minor typo bug. 2020-06-27 11:41:52 +05:30
Shreyas Zare
54762297ea ZoneTree: fixed issues in FindZone() to correctly check if sub domains exists. Fixed issue in selection of delegation and authority zones. 2020-06-27 11:41:17 +05:30
Shreyas Zare
8bf488818d webapp: updated UI glue addresses fields for specific zone types only. Disabled NS record edit options for secondary and stub zones. 2020-06-21 19:52:09 +05:30
Shreyas Zare
d18bf2ab77 ZoneTree: added IsKeySubDomain() checks in FindNodeValue() instead of checking it afterwards for correctness. 2020-06-20 19:22:45 +05:30
Shreyas Zare
9cdb21acd0 DnsServer: updated ProcessZoneTransferQuery() with zone checks using AuthZoneInfo. 2020-06-20 19:14:21 +05:30
Shreyas Zare
d5e463ec28 StubZone: not adding glue for SOA record as its not required. 2020-06-20 19:13:44 +05:30
Shreyas Zare
9fa91d96f7 AuthZoneManager: updated SyncRecords() to handle root zone case. Prevented SyncRecords() from overwriting glue addresses for SOA record. 2020-06-20 19:12:50 +05:30
Shreyas Zare
be3fc997a7 webapp: changed glue address ui to use textarea. 2020-06-20 19:11:11 +05:30
Shreyas Zare
0360f76d28 StubZone: using GetAllNameServerAddresses() for getting all name server addresses. 2020-06-20 17:35:04 +05:30
Shreyas Zare
33f28c8d89 SecondaryZone: using GetPrimaryNameServerAddresses() to get primary name server addresses. Using different timeout values for SOA and AXFR queries since AXFR may take longer time. Code refactoring done. 2020-06-20 17:34:33 +05:30
Shreyas Zare
870937f390 PrimaryZone: using GetAllNameServerAddresses() method to get secondary name server addresses. 2020-06-20 17:32:17 +05:30
Shreyas Zare
c9ba96e82f AuthZone: implemented GetNameServerAddresses(), GetPrimaryNameServerAddresses() and GetAllNameServerAddresses() common functions for code reuse. 2020-06-20 17:31:41 +05:30
Shreyas Zare
40e15825f7 ZoneTree: fixed bug in GetNextSubDomainZoneNode() which could cause listing of sub domains from another zone down the tree. fixed bug in FindNodeValue() to allow finding authority when key is for root. Fixed issue in FindZone() that would incorrectly report existence of sub domain. 2020-06-20 16:33:19 +05:30
Shreyas Zare
c5064651ac BlockListZoneManager: fixed null reference error. 2020-06-20 16:30:52 +05:30
Shreyas Zare
8703c9fb57 DnsServer: implemented DnsDatagram parsing changes. 2020-06-20 14:17:28 +05:30
Shreyas Zare
5e8cb1cbd1 AuthZoneManager: zone loading sequence updated. update server domain done async. Fixed issue with GetForwarderResponse() to allow using subdomain FWD records. Updated LoadZoneFrom() to correctly loading old version stub zones. Fixed minor issues and refactoring done. 2020-06-20 14:14:19 +05:30
Shreyas Zare
353693529f BlockListZoneManager: zone loading sequence updated. code refactoring done. 2020-06-20 14:10:26 +05:30
Shreyas Zare
c1a3e0fe86 minor refactoring done. 2020-06-20 14:09:35 +05:30
Shreyas Zare
e7cd3687ef BlockedZoneManager: zone loading sequence updated. 2020-06-20 14:09:13 +05:30
Shreyas Zare
9795225bd2 AllowedZoneManager: zone loading sequence updated. 2020-06-20 14:08:41 +05:30
Shreyas Zare
0ac4b61f28 minor code refactoring. 2020-06-20 14:08:10 +05:30
Shreyas Zare
0afe7a8e64 DhcpServer: implemented waitForInterface option in ActivateScope() to allow waiting upto 30 sec for activating scope on server startup. Implemented stopping option in UnloadScope() to avoid closing socket when server is stopping to prevent from getting indefinitely blocked due to .NET Core bug on linux. 2020-06-20 14:05:43 +05:30
Shreyas Zare
f88717e731 webapp: ui enhancements done. added OISD block list. 2020-06-20 14:02:35 +05:30
Shreyas Zare
1351c43ca2 WebService: fixed minor issues. updated zone loading sequence. loading for block list zone done async to allow server to start quickly. 2020-06-20 14:01:02 +05:30
Shreyas Zare
f00cdad2ab Fixed socket dispose getting blocked issue with work around. More info on the issue: https://github.com/dotnet/runtime/issues/37873 2020-06-14 19:57:21 +05:30
Shreyas Zare
2d2824cc6c webapp: updated UI to allow editing glue addresses for secondary and stub zones. 2020-06-14 15:45:23 +05:30
Shreyas Zare
6e29034566 AuthZoneManager: updated auth zones to allow updating glue addresses for secondary and stub zones. 2020-06-14 15:44:29 +05:30
Shreyas Zare
5b978f9f28 added missing ANAME validations. 2020-06-14 13:47:48 +05:30
Shreyas Zare
28f34c1773 minor UI issues fixed. 2020-06-14 13:34:35 +05:30
Shreyas Zare
84d30a295e AuthZone: made Disabled property virtual and overrided it in primary, secondary and stub zone to correctly start or stop timer events. 2020-06-14 13:20:53 +05:30
Shreyas Zare
771d3df50c webapp: added zone enable, disable and delete buttons to edit zone viewer. 2020-06-14 13:18:31 +05:30
Shreyas Zare
07c7a8c5b7 renamed MasterNameServer to PrimaryNameServer. 2020-06-14 12:40:40 +05:30
Shreyas Zare
7c38ddac37 DhcpServer: added retry with delay in ActivateScope() when no static IP address was found on the system which is common issue when the server boots up. 2020-06-13 19:54:03 +05:30
Shreyas Zare
8af2f49bcc webapp: added refresh link for zone viewer. minor ui changes done. 2020-06-13 19:19:52 +05:30
Shreyas Zare
f3f0c10c15 WebService: Updated ResolveQuery() import feature to allow primary and forwarder zones for import. 2020-06-13 18:49:08 +05:30
Shreyas Zare
17868a7ffb minor refactoring changes. 2020-06-13 18:48:19 +05:30
Shreyas Zare
1526a48fc3 AuthZone: automatic trigerring of notify or refresh for zone when it is enabled implemented. 2020-06-13 18:24:22 +05:30
Shreyas Zare
d4c9b7ed0a AuthZoneInfo: added NotifyNameServers() method to allow triggering notify requests. 2020-06-13 18:06:30 +05:30
Shreyas Zare
f7e8fb7158 DnsServer: implemented ProcessNotifyQuery() to handle notify requests for secondary zones. 2020-06-13 17:28:38 +05:30
Shreyas Zare
7f9d4fa063 AuthZoneInfo: implemented RefreshZone() method to allow refreshing secondary & stub zones. 2020-06-13 17:27:55 +05:30
Shreyas Zare
752958102b PrimaryZone: reduced notify trigger interval to 10sec. Included SOA record in notify request. 2020-06-13 17:24:54 +05:30
Shreyas Zare
8d43f71fc7 DnsServer: fixed AXFR permission issue in ProcessZoneTransferQuery() by checking remote ip against glue addresses for name servers. 2020-06-13 16:34:26 +05:30