Set Up a Custom Domain
To map your custom domain to the services running on your Azure VM (e.g., backend, auth, app, socket, proxy), you’ll need to create five separate A records, each pointing to your VM’s public IP address.
Example DNS record:
Type | Name (Host) | Value (Points to) | TTL |
---|---|---|---|
A | backend | YOUR_PUBLIC_IP | 3600 or Auto |
A | auth | YOUR_PUBLIC_IP | 3600 or Auto |
A | app | YOUR_PUBLIC_IP | 3600 or Auto |
A | socket | YOUR_PUBLIC_IP | 3600 or Auto |
A | proxy | YOUR_PUBLIC_IP | 3600 or Auto |
Replace YOUR_PUBLIC_IP with the actual public IP address of your Azure VM.
Each of these subdomains (e.g., backend.yourdomain.com, auth.yourdomain.com, etc.)
will allow external access to the corresponding services on your server.
note
DNS changes may take a few minutes to several hours to propagate.