This commit addresses an issue where the script was expecting the domain to include the "www" prefix for proper zone identification. The regex in get_domain_from_fqdn has been modified to make the subdomain part optional, allowing it to handle both domains with "www" and root domains without "www".
These changes were necessary to ensure the script works seamlessly with both www and root domains, providing more flexibility in DNS record handling.
Testing has been performed, and the script now successfully identifies and updates DNS records for domains with or without the "www" prefix.