Skip to content

Version 3.0

Compare
Choose a tag to compare
@stecklars stecklars released this 20 Jan 01:16
· 25 commits to master since this release

Added a new highly requested feature πŸš€

πŸ†• It is now possible to update any combination of domains, subdomains, domain roots, domain wildcards – at the same time.
One run and all your domains and subdomains have been updated according to your wishes. Say goodbye to CNAMEs or multiple script instances. πŸ’₯ 🀯 (Closes #4)

Check out the new config.dist.php supplied with the new version to profit from the new function.

Important notes when upgrading from an older version:
Older versions used a different config format. It looks like this:

define('DOMAIN', 'mydomain.com');
define('HOST', 'server');

(This would update server.mydomain.com, for example.)

This config format is still accepted for the time being, however it is considered deprecated and may be removed in any further release. A warning will be printed if you did not yet switch to the new config format:
[2022/01/20 01:10:12 +0000][WARNING] You are using an outdated configuration format (for configuring domain / host). This is deprecated and might become incompatible very soon. Please update to the new configuration format (using 'DOMAINLIST'). Please check the documentation in config.dist.php for more information.
I therefore recommend you to switch to the new config format, as described in the config.dist.php supplied with the new version. You can then delete or comment out the old config options. However, if you provide the config in the new DOMAINLIST option, it will always be preferred over the old config options anyway.

For example, the above configuration would look like this in the new config format:
define('DOMAINLIST', 'mydomain.com: server');
Now that doesn't look too different, does it?

But it opens up new possibilities:
Imagine you want not only to update server.mydomain.com but also server2.mydomain.com. Previously, you would have to create a CNAME DNS-Record on server2.mydomain.com to server.mydomain.com or you would have to run two instances of my script. Now, you can just change the config to this:
define('DOMAINLIST', 'mydomain.com: server, server2');

Want to add another domain? No problem:
define('DOMAINLIST', 'mydomain.com: server, server2; mydomain2.com: @, *');
(Now, it updates server.mydomain.com, server2.mydomain.com, mydomain2.com (root domain) and every subdomain of mydomain2.com where no other DNS record has been defined (wildcard).)