Change domains without reinstalling
Why change a domain?
The panel and REALITY domains give your server's connections recognizable names. Sometimes you need to change them: you could not renew a registration, your provider no longer lets you access the old domain, or you simply want to use a new one.
3X-UI AUTO NGINX offers a dedicated 2. Change Domains menu option. You can change the panel domain, the REALITY domain or both at once while keeping clients, settings and statistics, without reinstalling the server.
Before changing domains
The new domains must point to this VPS, and TCP/80 must be open for certificate issuance. Save a Backup outside the VPS. Do not delete and recreate preconfigured inbounds or their associated Host records, or the operation may refuse to change the settings. The Vision domain is not changed. Do not run Installation again.
Prepare the domains · Run the manager and change domains · Verify the result · If an error occurs.
Which domains are used?
| Role | Purpose |
|---|---|
| Panel domain | 3x-ui web panel, subscriptions, HTTPS and additional web services |
| REALITY domain | Primary REALITY connection and its associated configuration |
| Vision domain | Optional, separate XTLS Vision connection with its own certificate |
You can change the panel domain, the REALITY domain or both. This operation does not change the Vision domain; it is configured separately. All domain names in use must be distinct.
| What you change | What you need to update afterwards |
|---|---|
| Panel only | Panel address, subscription and personal DNS URLs, and profiles that use the old panel domain |
| REALITY only | REALITY settings in client apps; refresh the subscription, whose domain remains unchanged |
| Both domains | Panel address, subscription links, affected profiles and personal DNS |
If the VPS is a cascade exit server, check the inter-server connection after changing domains and reconnect the cascade if necessary.
1. Prepare the new domains
You need access to the DNS settings for the new domains. For example, if you are moving from old.example.com to panel.example.net, create an A record for panel.example.net that points to the IPv4 address of your current VPS. Create a separate A record for the new REALITY domain pointing to the same server.
If you use AAAA records, they must point to a reachable IPv6 address on the same server. Check that the new domain names resolve to the correct address. TCP port 80 must be reachable from the internet for HTTPS certificate issuance.
The old panel and REALITY domains may already point to another server or have been removed from DNS by the time you change them.
Before proceeding, save an up-to-date Backup outside the VPS. The manager also creates a full Backup v3 automatically before making changes.
2. Change the domains
Connect to your VPS via SSH. If you logged in as a regular user, run sudo -i first.
On the VPS as root, download and launch the latest stable manager:
curl -fSL https://github.com/xPROMSx/3x-ui-auto-nginx/releases/latest/download/x-ui-latest.sh -o x-ui-latest.sh && bash x-ui-latest.sh
Select English. Do not choose 1. Installation on a working server.
- Choose 2. Change Domains.
- Select 1. Change Panel domain, 2. Change REALITY domain or 3. Change both domains, as appropriate.
- Enter the domain names you prepared. Check the displayed old and new values.
- Type
YESto confirm. The manager creates a Backup, validates the settings, prepares the certificates and updates the configuration. Wait for the result.
3. Verify the result
- Open the panel at its current address: the new one if you changed the panel domain, or the old one if you changed only REALITY.
- If the panel domain changed, replace the subscription URLs in your apps with the current ones from the panel. Update your personal DNS settings if you use AdGuard Home.
- Refresh the subscriptions. If you used an individual connection link, retrieve the affected profile from the panel again. Test an actual connection from your device.
- If you use a cascade, check its status and public IP address.
If everything works, the domain change is complete.
4. What is preserved?
Changing domains modifies a working installation rather than replacing it. The project preserves clients, credentials, rules and statistics. Only the relevant managed domain settings and certificates change.
Changing the panel domain also changes the personal DNS address; the DoT certificate is updated as well.
If the old domain is blocked
Follow the normal domain-change procedure above. Access to the old domain is not required as long as the local stack is healthy.
If you could not renew a domain
Use the new domains. If you change the panel domain, give users the new subscription URL: the old link will not update itself.
5. If an error occurs
The manager validates changes before applying them and retains a Backup and recovery information. If you see ROLLBACK_UNVERIFIED, stop making further changes. Do not delete the Backup or recovery data. Save the exact error message and check the server's state first.
Do not use 1. Installation to fix a domain-change error. Installation replaces managed data. Change Domains is specifically designed for a working stack.
Backup and Restore · Personal DNS · Getting started
Attribution and use of materials
© 2026 xPROMSx contributors · 3X-UI AUTO NGINX
Our material may be copied and distributed under the GNU GPL-3.0-only license, provided the attribution and link to the original are retained.
Original source: https://xpromsx.github.io/3x-ui-auto-nginx/guides/domains/