{"id":58537,"date":"2020-12-03T09:15:03","date_gmt":"2020-12-03T15:15:03","guid":{"rendered":"https:\/\/blog.cpanel.com\/?p=58537"},"modified":"2020-12-03T09:15:03","modified_gmt":"2020-12-03T15:15:03","slug":"how-to-host-dynamic-dns-domains-with-cpanel","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/tips-and-tricks\/how-to-host-dynamic-dns-domains-with-cpanel\/","title":{"rendered":"How to Host Dynamic DNS Domains with cPanel"},"content":{"rendered":"\n

cPanel is great for managing websites, apps, and email accounts hosted on servers in data centers, but many people also want to host online services at their home or business. Unfortunately, many residential and business ISPs don\u2019t offer dedicated IP addresses, which means that you can\u2019t use a domain name to connect to services hosted on their networks. <\/p>\n\n\n\n

The solution is dynamic DNS, which automatically updates domain records when IP addresses change.  It is incredibly easy to set up dynamic domains in cPanel with our new Dynamic DNS <\/em>tool. In this article, we\u2019ll explain how dynamic DNS works and show you how to configure a domain in minutes. <\/p>\n\n\n\n

What is Dynamic DNS?<\/strong><\/h2>\n\n\n\n

Dynamic DNS is a system for updating DNS (Domain Name System) records. When you type a URL into a web browser, it asks a DNS server to convert the domain name into an IP address, the unique number that identifies devices on the internet. The server looks at DNS records stored in zone files to find the IP address associated with a domain. <\/p>\n\n\n\n

If the IP address changes, as it does on most domestic and business networks, the records quickly become outdated. The server sends the wrong address, and the connection fails. <\/p>\n\n\n\n

Dynamic DNS provides a way for devices like network routers to tell servers when their IP address changes. The device connects to a special web address, authenticates, and sends the new IP. cPanel updates the zone records, and the next time someone tries to connect, they get the right IP. <\/p>\n\n\n\n

Creating DDNS Domains with cPanel<\/strong><\/h2>\n\n\n\n

cPanel has supported dynamic DNS domains for many years. In the past, we recommended the cPanel Dynamic DNS Tools<\/a> <\/em>script, which runs on a server on your network and can automatically update zone records.<\/p>\n\n\n\n

The script remains a useful option for users with older versions of cPanel, but the Dynamic DNS <\/em>interface introduced in cPanel version 94 simplifies the process, integrating with routers and firewalls without requiring a third-party script. <\/p>\n\n\n\n

Managing dynamic domains is a two-step process:<\/p>\n\n\n\n

  1. Create the domain in cPanel\u2019s Dynamic DNS <\/em>interface. <\/li>
  2. Configure your network\u2019s router or firewall with the information cPanel provides.<\/li><\/ol>\n\n\n\n

    Create a New DDNS Domain in cPanel<\/strong><\/h3>\n\n\n\n

    First, we\u2019ll set up the domain. Log in to your cPanel account and navigate to Dynamic DNS, <\/em>which you will find in the main page\u2019s DNS section<\/em>.<\/p>\n\n\n\n

    \"cPanel<\/figure>\n\n\n\n

    Click the Create <\/em>button.<\/p>\n\n\n\n

    \"cPanel<\/figure>\n\n\n\n

    Enter a new subdomain for a domain managed by your cPanel account. For example, if you want to host a file server on a business or home network, you might choose \u201cfiles\u201d as the subdomain.<\/p>\n\n\n\n

    \"Panel<\/figure>\n\n\n\n

    You can also provide the current IP address of the network or device your domain will point to, although it will be automatically updated once dynamic DNS is up and running. Finally, you can give the domain a name to help you remember what you are using it for; \u201cOffice File Server,\u201d for example. When you click Create <\/em>on this page, cPanel creates the subdomain and generates a unique URL called a webcall. <\/p>\n\n\n\n

    \"cPanel<\/figure>\n\n\n\n

    The webcall is the address that a router or server will use to tell cPanel that its IP address has changed. When cPanel receives a valid message at this URL, it updates the domain\u2019s zone records.<\/p>\n\n\n\n

    Configure Your Router for Dynamic DNS<\/strong><\/h3>\n\n\n\n

    Every router, firewall, and DDNS client has a unique process for configuring custom DDNS domains, so we can\u2019t give precise instructions. <\/p>\n\n\n\n

    In most cases, you will need to:<\/p>\n\n\n\n