Domains and DNS
Dynamic DNS in cPanel: update a subdomain's IP
Domain without hosting: if your domain has no associated hosting, you can now manage dynamic DNS directly from the client area with a dedicated interface. See the guide to dynamic DNS from the client area.
Dynamic DNS lets you create a subdomain pointing to a dynamic IP and keep it up to date when the IP changes. cPanel can issue a certificate for the hostname if one is available, but you have to install or configure it on the destination device: DDNS doesn't enable HTTPS on its own.
This guide is specifically for domains with associated hosting that need to manage dynamic DNS from cPanel.
This can be useful for making a web server, a NAS storage device or a personal computer on a network with a dynamic IP, at your office, business or home, publicly reachable with a friendly name.
To begin, create the subdomain you want, in our example nas.tudominio.com. The subdomain will appear in the list and, next to its name and description, you'll see a URL.
The URL contains a secret credential and is used to update the dynamic IP, so it must be called from the network that IP belongs to. Don't publish it or include it in screenshots; if it is exposed, delete it and create a new one.
How you keep the IP up to date depends on your setup. For example, if you have administrator access to your router, it probably has an option where you can add this URL, so the router calls it every time the dynamic IP changes.
The same applies to NAS storage devices: their settings panel usually has features to hand this task over to the device.
Another option is to set up a cron job on the computer the subdomain points to, so that every few minutes it calls the address (for example with curl or wget), and cPanel updates the IP if it detects a change.
Differences between dynamic DNS methods
| Feature | Dynamic DNS in cPanel | Dynamic DNS in the client area |
|---|---|---|
| Requirement | Domain with hosting | Domain without hosting |
| Where it's managed | cPanel | Client area |
| Setup | Manual, per subdomain | Dedicated interface |
| Multiple entries | One at a time | Up to 10 per domain |
| Token management | Regenerable URL; when you recreate it, the old one stops working | Regenerable tokens |
| IPv6 | Supported | Supported |
| Enable/disable | Manual | Per entry |
Which one to use?
- Domains with hosting: use this feature from cPanel
- Domains without hosting: use the new client area feature, which offers easier management and extra features
If the name resolves but doesn't connect
The update call must come from the network whose IP you want to publish. If you make it from the hosting, a VPN or a proxy, you may record the IP of that other exit point instead. Check the A and AAAA records separately, and the connectivity of each address family.
DDNS doesn't open ports or get around CGNAT. If your provider shares your public IPv4 address, check the remote access options for your connection; changing the record doesn't by itself let you receive incoming connections. Set up only the access you need and use authentication and encryption on the destination service.
After an IP change, confirm the public record and test from another connection. A valid certificate must be installed on the device that answers for the name, not just exist in cPanel.
You may also find useful
- Add DNSSEC keys to a domain at Hostsuar Complete the registrar's DNSSEC link with the correct public key and check it is published before ch...
- Change a domain's nameservers Prepare the new zone, change the nameservers from the client area and check your website and email d...
- Create and edit DNS records with Zone Editor Edit the DNS zone in cPanel, understand each record type and check the impact before replacing or de...
- Delegate a subdomain with NS records Prepare a subdomain delegation to other nameservers without changing the main domain's nameservers.
Something wrong or out of date? Tell us and we will review it.