DomainMOD on Windows Server 2025 on Azure User Guide
Overview
DomainMOD is open source software for tracking domains and the internet assets around them. Every domain is recorded with its registrar, expiry date, renewal fee, owner, category and stakeholder, alongside SSL/TLS certificates, hosting accounts, IP addresses and DNS providers. It sends expiry alerts by email, reports renewal costs in your own currency, and its domain queue can read domain data straight from registrar APIs.
This image runs DomainMOD 5.0.0 on Windows Server 2025 Datacenter (Desktop Experience), served by IIS through PHP 8.4 (FastCGI) at https://<your VM>/, with its database in MariaDB 11.4 LTS on the same VM. On the first boot of every VM the image creates this VM's own MariaDB database and passwords, its own DomainMOD secret key and Task Scheduler key, runs DomainMOD's own installer, makes its own administrator password and TLS certificate, and removes the installer; nothing answers on ports 80 and 443 until that is done. DomainMOD asks you to choose your own password at your first sign-in. DomainMOD runs under its own IIS application pool identity, its scheduled jobs as LOCAL SERVICE, and MariaDB as its own virtual service account listening on the loopback only, never as LocalSystem. The Windows Server licence is included in the virtual machine price that Microsoft bills; DomainMOD is open source under the GNU GPL v3 or later. cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours.
What is included:
- DomainMOD 5.0.0 from the official release, in
C:\inetpub\domainmod, served by IIS on the site DomainMOD in the application pool DomainMOD (its own ApplicationPoolIdentity) - PHP 8.4.28 (NTS x64, FastCGI) in
C:\Program Files\PHP, with the extensions DomainMOD uses and OPcache - MariaDB Server 11.4.14 LTS in
C:\Program Files\MariaDB 11.4, running asNT SERVICE\MariaDBon127.0.0.1:3306only, data inC:\ProgramData\MariaDB\data - A per-VM DomainMOD
adminpassword, MariaDB passwords, secret key, Task Scheduler key and self signed TLS certificate, made at first boot; DomainMOD's installer removed - DomainMOD's Task Scheduler driven every 10 minutes by the Windows scheduled task
domainmod-cron, running as LOCAL SERVICE - HTTPS on TCP 443, TCP 80 redirecting to HTTPS, and Windows Firewall rules for both
- Windows Server 2025 Datacenter, patched with Windows Update at build, Microsoft Defender Antivirus and Windows Firewall on
- cloudimg's support team on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours
Prerequisites
An active Azure subscription, a Remote Desktop client, and a virtual network in the target region. Standard_B2ms (2 vCPU, 8 GiB RAM) is a good starting point; choose a larger size for a large portfolio or many concurrent users. In the network security group, allow inbound TCP 3389 (Remote Desktop), TCP 443 (DomainMOD) and TCP 80 (the redirect to HTTPS) from your own address ranges only.
Step 1: Deploy from the Azure Marketplace
Sign in to the Azure Portal, choose Create a resource, search the Marketplace for DomainMOD on Windows Server 2025 by cloudimg, and select Create. On Basics pick your subscription, resource group, region and size, and set the Administrator account username and password. Under Inbound port rules allow RDP (3389), HTTP (80) and HTTPS (443), then narrow each rule's source to your own address range on the Networking tab. Select Review + create, then Create.
Step 2: Deploy from the Azure CLI
# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn cloudimg1647283583153:domainmod-windows-server:default:latest
az vm create \
--resource-group <your-rg> \
--name domainmod \
--image cloudimg1647283583153:domainmod-windows-server:default:latest \
--size Standard_B2ms \
--admin-username <admin-name> \
--admin-password '<a strong password>' \
--public-ip-sku Standard
az vm open-port --resource-group <your-rg> --name domainmod --port 3389 --priority 1000
az vm open-port --resource-group <your-rg> --name domainmod --port 443 --priority 1010
az vm open-port --resource-group <your-rg> --name domainmod --port 80 --priority 1020
az vm open-port opens each port to any address; narrow the rules to your own ranges in the network security group afterwards.
First boot takes a few minutes. When the VM first starts, Windows finishes its setup, then the image creates this VM's database, runs DomainMOD's installer, makes the passwords, keys and certificate and starts IIS. Until then DomainMOD does not answer on ports 80 and 443. The setup is finished when the file
C:\ProgramData\DomainMOD\domainmod-firstboot.doneexists (Step 4).
Step 3: Connect with Remote Desktop
Connect to the VM's public IP address with your Remote Desktop client (on Windows, mstsc; on macOS, Windows App), signing in with the administrator name and password you set at deployment. Open Windows PowerShell as administrator for the commands below.
Step 4: Confirm DomainMOD is running
Get-Content C:\ProgramData\DomainMOD\domainmod-firstboot.done
Get-Service W3SVC, MariaDB | Format-Table Status, StartType, Name, DisplayName
Get-NetTCPConnection -State Listen -LocalPort 80, 443, 3306 | Sort-Object LocalPort | Format-Table LocalAddress, LocalPort, @{n='Process';e={(Get-Process -Id $_.OwningProcess).ProcessName}}
Get-ScheduledTask -TaskName domainmod-cron | Format-Table TaskName, State, @{n='RunAs';e={$_.Principal.UserId}}, @{n='Every';e={$_.Triggers[0].Repetition.Interval}}
Get-Content C:\inetpub\domainmod\version.txt
done 2026-12-02T15:54:05.5245634Z address=20.127.22.240 certificate=542CBA5ADF5C9CD9A57C68F0D865A6660DF87610
Status StartType Name DisplayName
------ --------- ---- -----------
Running Automatic MariaDB MariaDB
Running Automatic W3SVC World Wide Web Publishing Service
LocalAddress LocalPort Process
------------ --------- -------
:: 80 System
:: 443 System
127.0.0.1 3306 mysqld
TaskName State RunAs Every
-------- ----- ----- -----
domainmod-cron Ready LOCAL SERVICE PT10M
5.0.0
The first line shows when first boot finished. IIS (W3SVC) and MariaDB start automatically with Windows. Ports 80 and 443 belong to System because IIS listens through the Windows HTTP stack; MariaDB listens on 127.0.0.1 only, so it cannot be reached from the network. The scheduled task domainmod-cron runs DomainMOD's scheduler every 10 minutes (PT10M), and the last line is the DomainMOD version.

Step 5: Read your administrator password
First boot wrote the DomainMOD administrator's login and password, and the MariaDB passwords, to a file that only the SYSTEM account and the Administrators group can read:
Get-Content C:\ProgramData\DomainMOD\domainmod-credentials.txt
DomainMOD on Windows Server 2025 by cloudimg
DomainMOD: https://20.127.22.240/ (on this VM: https://localhost/)
DOMAINMOD_ADMIN_USER=admin
DOMAINMOD_ADMIN_PASSWORD=<22 random characters>
DomainMOD asks you to choose your own password at your first sign-in.
MARIADB_DATABASE=domainmod
MARIADB_USER=domainmod
MARIADB_PASSWORD=<22 random characters>
MARIADB_ROOT_PASSWORD=<22 random characters>
MariaDB listens on 127.0.0.1:3306 only.
DomainMOD secret key ($secret_key) and Task Scheduler key ($cron_key): in C:\inetpub\domainmod\_includes\config.inc.php. Keep a copy of the secret key with your backups.
The HTTPS certificate is self-signed and made for this VM: replace it with your own (see the user guide).
Above, each password is shown by its length; your file holds the passwords themselves. The DomainMOD login is always admin; every password is random and different on every VM. Keep the MariaDB passwords somewhere safe.
Step 6: Sign in and choose your password
On your own computer, browse to https://<vm-public-ip>/. The certificate is this VM's own self signed one, so your browser warns about it the first time: accept it to continue (or install a trusted certificate, see Use a trusted certificate below). On the VM itself, Microsoft Edge trusts it and opens https://localhost/ without a warning. http:// addresses redirect to HTTPS.

Sign in as admin with the password from Step 5. DomainMOD opens Settings > Security and asks you to choose a new password before anything else (at least 8 characters). Once it is changed, two-factor authentication (MFA) for your account can be turned on from the same page.

A wrong password or a blank login is refused, and so is admin with the password admin. DomainMOD's installer has been removed from the VM, so nobody can run it again over the web. The credentials file keeps the first password after you change it; it no longer signs in.
Step 7: Set up DomainMOD
Under Administration > System Settings, enter the email address DomainMOD sends from and, to send expiry alerts, your SMTP server (Use SMTP Server). Full DomainMOD URL on the same page is set to https://<the VM's public IP address> by first boot; change it when you give the VM a DNS name (see Use a trusted certificate). Then add your registrars and their accounts under Assets, and your domains under Domains. Create a user for each person under Administration > Users rather than sharing admin.
Step 8: Check the services' identities
Open Internet Information Services (IIS) Manager and select Application Pools. DomainMOD serves both sites (DomainMOD on 443, and the Default Web Site's redirect on 80) with No Managed Code (PHP runs through FastCGI) under its own ApplicationPoolIdentity, a low privilege account.

The same from PowerShell, with the scheduled task's account and who can read DomainMOD's configuration file:
Import-Module WebAdministration
Get-ChildItem IIS:\AppPools | Select-Object Name, State, managedRuntimeVersion, @{n='Identity';e={$_.processModel.identityType}} | Format-Table
Get-CimInstance Win32_Service -Filter "Name='MariaDB'" | Format-List Name, StartName, StartMode, State, PathName
Get-ScheduledTask -TaskName domainmod-cron | ForEach-Object { [pscustomobject]@{ Task = $_.TaskName; RunAs = $_.Principal.UserId; SidType = $_.Principal.ProcessTokenSidType; Program = $_.Actions[0].Execute; Arguments = $_.Actions[0].Arguments } } | Format-List
(Get-Acl C:\inetpub\domainmod\_includes\config.inc.php).Access | Format-Table IdentityReference, FileSystemRights -AutoSize
name state managedRuntimeVersion Identity
---- ----- --------------------- --------
DefaultAppPool Started v4.0 ApplicationPoolIdentity
DomainMOD Started ApplicationPoolIdentity
Name : MariaDB
StartName : NT SERVICE\MariaDB
StartMode : Auto
State : Running
PathName : "C:\Program Files\MariaDB 11.4\bin\mysqld.exe" "--defaults-file=C:\ProgramData\MariaDB\data\my.ini"
"MariaDB"
Task : domainmod-cron
RunAs : LOCAL SERVICE
SidType : Unrestricted
Program : C:\Program Files\PHP\php.exe
Arguments : "C:\inetpub\domainmod\cron.php"
IdentityReference FileSystemRights
----------------- ----------------
NT AUTHORITY\SYSTEM FullControl
BUILTIN\Administrators FullControl
IIS APPPOOL\DomainMOD ReadAndExecute, Synchronize
NT TASK\domainmod-cron ReadAndExecute, Synchronize
config.inc.php holds the database password and DomainMOD's keys: only SYSTEM and administrators can change it, and the web server and the scheduled task (by its own task identity, NT TASK\domainmod-cron) can only read it.


Server Components
| Component | Version or setting | Where |
|---|---|---|
| DomainMOD | 5.0.0 | C:\inetpub\domainmod (the site root) |
| IIS | Site DomainMOD on HTTPS 443, Default Web Site on HTTP 80 (redirect only), pool DomainMOD (ApplicationPoolIdentity, No Managed Code), PHP through FastCGI | C:\Windows\System32\inetsrv |
| PHP | 8.4.28 NTS x64, php.ini from upstream's production settings |
C:\Program Files\PHP |
| MariaDB Server | 11.4.14 LTS, service MariaDB, NT SERVICE\MariaDB, Automatic, 127.0.0.1:3306 |
C:\Program Files\MariaDB 11.4, data C:\ProgramData\MariaDB\data |
| Task Scheduler | Windows task domainmod-cron: php.exe cron.php every 10 minutes as LOCAL SERVICE |
Task Scheduler Library |
| HTTPS | TCP 443, this VM's self signed certificate (RSA 2048, private key not exportable) | Cert:\LocalMachine\My, friendly name "DomainMOD web server (this VM, cloudimg)" |
| HTTP | TCP 80, redirects to HTTPS | Windows Firewall rules in the group DomainMOD |
| Windows Server | 2025 Datacenter, Desktop Experience, build 26100 |
Filesystem Layout
| Path | What it holds |
|---|---|
C:\inetpub\domainmod\ |
DomainMOD's code, the site root. Read-only to the web server and the scheduled task, except temp\ |
C:\inetpub\domainmod\_includes\config.inc.php |
DomainMOD's configuration: the database connection, the secret key and the Task Scheduler key. Read-only to the web server; IIS never serves _includes |
C:\inetpub\domainmod-health\ |
The /healthz/ page (it answers ok, for load balancers and monitors) |
C:\ProgramData\DomainMOD\php\ |
PHP's sessions, uploads in progress, temporary files and error log |
C:\ProgramData\MariaDB\data\ |
The MariaDB database (my.ini is here too) |
C:\ProgramData\DomainMOD\domainmod-credentials.txt |
This VM's first passwords. SYSTEM and Administrators only |
C:\ProgramData\DomainMOD\domainmod-firstboot.log |
What first boot did (never a password) |
Managing the Services
From an elevated PowerShell window:
# restart the web server (after a php.ini or IIS change)
iisreset
# restart the database
Restart-Service MariaDB
# run DomainMOD's scheduler now, instead of waiting for the next 10 minutes
Start-ScheduledTask -TaskName domainmod-cron
To confirm the HTTP redirect, the sign-in page, the paths IIS never serves, the bindings and this VM's certificate:
Import-Module WebAdministration
function Get-Status([string]$url) { $rq = [Net.HttpWebRequest]::Create($url); $rq.AllowAutoRedirect = $false; $rq.Timeout = 60000; try { $rs = $rq.GetResponse() } catch [Net.WebException] { $rs = $_.Exception.Response; if (-not $rs) { return "$url no answer ($($_.Exception.Status))" } }; try { "$url $([int]$rs.StatusCode) $($rs.StatusDescription) $($rs.Headers['Location'])".Trim() } finally { $rs.Close() } }
foreach ($u in 'http://localhost/', 'https://localhost/', 'https://localhost/healthz/', 'https://localhost/install/', 'https://localhost/cron.php', 'https://localhost/_includes/config.inc.php') { Get-Status $u }
Get-WebBinding | Format-Table ItemXPath, protocol, bindingInformation -AutoSize
Get-ChildItem Cert:\LocalMachine\My | Where-Object FriendlyName -like 'DomainMOD*' | Format-List Subject, NotAfter, Thumbprint, FriendlyName
http://localhost/ 301 Moved Permanently https://20.127.22.240/
https://localhost/ 200 OK
https://localhost/healthz/ 200 OK
https://localhost/install/ 404 Not Found
https://localhost/cron.php 404 Not Found
https://localhost/_includes/config.inc.php 404 Not Found
ItemXPath protocol bindingInformation
--------- -------- ------------------
/system.applicationHost/sites/site[@name='Default Web Site' and @id='1'] http *:80:
/system.applicationHost/sites/site[@name='DomainMOD' and @id='2'] https *:443:
Subject : CN=20.127.22.240
NotAfter : 12/2/2029 3:54:02 PM
Thumbprint : 542CBA5ADF5C9CD9A57C68F0D865A6660DF87610
FriendlyName : DomainMOD web server (this VM, cloudimg)

To open the database as root (the password is MARIADB_ROOT_PASSWORD in the credentials file):
& 'C:\Program Files\MariaDB 11.4\bin\mariadb.exe' -u root -p domainmod
Scheduled Jobs
DomainMOD's Task Scheduler runs its background jobs, among them Domain Queue Processing, Send Expiration Email, Update Conversion Rates, Check Watch List, Data Warehouse Build and System Cleanup. The image already calls it: the Windows task domainmod-cron runs C:\inetpub\domainmod\cron.php every 10 minutes as LOCAL SERVICE, so you do not set up a cron job yourself. Choose which jobs run, and when, under Administration > Task Scheduler. cron.php is never served over the web.
On Startup
At the first start of your VM, the scheduled task cloudimg-firstboot (SYSTEM) runs once:
- It keeps IIS stopped and disabled and the
domainmod-crontask disabled, and waits until Azure has finished setting up the VM - It creates this VM's MariaDB instance (root password, the
domainmoddatabase and its user, on the loopback only) - It writes
config.inc.phpwith the database password and this VM's own secret key and Task Scheduler key - It runs DomainMOD's own installer on the loopback only (nothing outside the VM can reach it): it creates the tables and
adminwith a random 22 character password that must be changed at first sign-in, sets the Full DomainMOD URL to the VM's address, then removes the installer - It writes
C:\ProgramData\DomainMOD\domainmod-credentials.txt, readable by administrators only - It makes this VM's TLS certificate, named for the VM's public and private addresses, binds it to port 443, and points the port 80 redirect at the VM's address
- It starts IIS, waits for
https://localhost/to answer, enablesdomainmod-cron, sets IIS and MariaDB to start automatically, writesdomainmod-firstboot.done, then removes itself and its script
If anything fails, IIS stays stopped and disabled and the task tries again at the next start. Every start after that, IIS and MariaDB start with Windows.
Security Recommendations
- Keep ports 80 and 443 to your own networks. DomainMOD holds your registrar accounts and renewal data: open 443 only to the networks your users are on, and prefer a VPN or private network.
- Choose a strong password at first sign-in, and turn on MFA under Settings > Security. Once MFA is on for your own account, you can require it for everyone with Require MFA for All Users under Administration > System Settings. Create named users rather than sharing
admin. - Keep the secret key safe.
$secret_keyinconfig.inc.phpencrypts the two-factor secrets; keep a copy with your backups. - Keep DomainMOD up to date. Administration > Upgrade shows when a new version is out. Back up first (below), replace the files under
C:\inetpub\domainmodwith the new release's, keeping_includes\config.inc.phpand leaving out the release'sinstallfolder, then sign in as an administrator and choose Upgrade Database (or run& 'C:\Program Files\PHP\php.exe' C:\inetpub\domainmod\update.phpon the VM). - Keep the web server read-only. The pool and the scheduled task can write only DomainMOD's
temp\folder and PHP's run folders; DomainMOD's code andconfig.inc.phpare read-only to them.
Use a trusted certificate
First boot's certificate is self signed. To use a certificate for your own DNS name, import it (a .pfx with its private key) into Cert:\LocalMachine\My and bind it to port 443 of the DomainMOD site:
$cert = Import-PfxCertificate -FilePath C:\path\to\domains.example.com.pfx -CertStoreLocation Cert:\LocalMachine\My -Password (Read-Host -AsSecureString 'PFX password')
Import-Module WebAdministration
(Get-WebBinding -Name DomainMOD -Protocol https -Port 443).AddSslCertificate($cert.Thumbprint, 'My')
Point your DNS name at the VM's public IP address, then tell DomainMOD its new address: under Administration > System Settings, set Full DomainMOD URL to https://domains.example.com (no trailing slash). DomainMOD builds the links in its emails from it.
The port 80 redirect still points at the IP address. To send it to your DNS name instead:
& "$env:windir\System32\inetsrv\appcmd.exe" set config 'Default Web Site' /section:httpRedirect /enabled:true '/destination:https://domains.example.com$V$Q' /exactDestination:true /httpResponseStatus:Permanent /commit:apphost
Maintenance
- Windows updates: Windows Update is on, as Microsoft ships it. Restarting the VM restarts IIS and MariaDB automatically.
- Back up your data: DomainMOD keeps its data in the database, and its keys in
config.inc.php. Back up both:
New-Item -ItemType Directory C:\Backup -Force | Out-Null
& 'C:\Program Files\MariaDB 11.4\bin\mariadb-dump.exe' -u root -p --single-transaction --result-file=C:\Backup\domainmod.sql domainmod
Copy-Item C:\inetpub\domainmod\_includes\config.inc.php C:\Backup\
DomainMOD's own Administration > Backup & Restore makes and restores a database backup from the browser too. Or use Azure Backup for the whole VM.
- Logs: IIS logs are in C:\inetpub\logs\LogFiles, PHP's error log in C:\ProgramData\DomainMOD\php\logs, MariaDB's in C:\ProgramData\MariaDB\data\<computer name>.err, and first boot's in C:\ProgramData\DomainMOD\domainmod-firstboot.log.
- Firewall: Windows Firewall allows 443 and 80 through the rules in the DomainMOD group; the network security group decides who can reach them.
Troubleshooting
DomainMOD does not answer, or domainmod-firstboot.done is missing
First boot may still be running: give it a few minutes and check again. Its log shows how far it got:
Get-Content C:\ProgramData\DomainMOD\domainmod-firstboot.log
The sign-in is refused
The login is admin (lower case). Copy the password from DOMAINMOD_ADMIN_PASSWORD= in C:\ProgramData\DomainMOD\domainmod-credentials.txt. If you already chose your own password at the first sign-in, the file still holds the first one, which no longer works.
HTTP redirects to the wrong address
The port 80 redirect points at the VM's public IP address, set at first boot. If you reach the VM by a DNS name or another address, change it as shown in Use a trusted certificate.
Expiry emails do not arrive
Check the sender address and SMTP server under Administration > System Settings, that Send Expiration Email is on under Administration > Task Scheduler, and that the user is subscribed to expiration emails in their Settings > User Profile. The jobs run when domainmod-cron does (every 10 minutes): Get-ScheduledTaskInfo -TaskName domainmod-cron shows its last run and result.
Uploads larger than 32 MB fail
PHP and IIS accept up to 32 MB per request (a large restore file, for example). Raise upload_max_filesize and post_max_size in C:\Program Files\PHP\php.ini and maxAllowedContentLength in the DomainMOD site's request filtering, then run iisreset.
Forgot the Windows password
Use Reset password on the VM's page in the Azure portal.
Support
cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours. Contact support@cloudimg.co.uk.
DomainMOD is open source software released under the GNU General Public License version 3 or later, created by Greg Chetcuti. All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.