### Changelog v2.1
1. Subdomain Delete Service:
- Fixed some issues that were not properly deleting some records in the domain
2. Subdomain Duplicates:
- Added a verification method to avoid duplicate subdomains
1. Subdomain Management:
- You can now create subdomains if you have an IP alias.
2. User Interface (UI):
- Minor visual improvement added.
1. General Improvements
- Improved error handling in subdomain creation and deletion.
- Added detailed logging for better debugging.
2. Bug Fixes
- Fixed an issue where subdomains were not syncing correctly when IP or port changed.
- Corrected regex validation to allow hyphens in subdomain names.
- Ensured all related domains are properly deleted when a server is removed.
3. New Features
- Added automatic validation of Cloudflare API credentials before saving.
- Implemented activity logging when creating or deleting subdomains.
4. UI/UX Enhancements
- Improved subdomain management UI layout to keep controls aligned.
- Added alerts that automatically disappear after 3 seconds.
Changelog v1.3
1. Original Controller (SubdomainManagerController):
- DNS records bug fixed
- Modal updated
Changelog
1. Original Controller (SubdomainManagerController):
- Added logic to handle subdomain creation using IP aliases.
- SRV records use the alias if present; otherwise, an A record is created.
2.createFunction:
- Added validation and retrieval of IP alias.
- Conditional creation of A and SRV records based on the presence of an alias.
3.deleteFunction:
- Attempts to delete both A and SRV records.
- Handles cases where one of the records does not exist.
4.updateAllocationFunction:
- Checks for the existence of A and SRV records.
- Updates A records with the new IP and SRV records with the new port.
- Handles exceptions to ensure both records are attempted for updates.
5. Helper Functions:
-updateCloudflareARecord: Updates A record with the new IP.
-updateCloudflareSRVRecord: Updates SRV record with the new port.
-deleteCloudflareARecord: Deletes A records.
-deleteCloudflareSRVRecord: Deletes SRV records.
-deleteCloudflareRecords: Attempts to delete both A and SRV records.
