Subdomains and DDNS via API
Hi,
I am currently looking to migrate from NOIP to Cloudflare, however I have to use a DDNS due to my ISP not allowing a static IP address.
I would like to ask a few question before migrating.
1. Can i dynamically update the Hostname's related IP ADDR via an api from one of my servers?
2. When i transfer my domain, can i add 4th level subdomains, in the case of the listed domain something like "test.example.ddns.net" would be an example?
3. If I can add 4th lv subdomains, which plans allow this, and how many at each plan?
4. If there are any issues that this setup might cause.
Any help is appreciated.
1 Reply
Support AI
I'd be happy to help you with your questions.
1. Yes, you can dynamically update the hostname's related IP address via an API from one of your servers. Cloudflare provides an API that allows you to update DNS records, including those for dynamic DNS. You can use the Cloudflare API to update the IP address associated with your hostname. For more information, you can refer to the Cloudflare API documentation: https://developers.cloudflare.com/api/resources/dns/subresources/records/methods/update/
2. Yes, you can add 4th level subdomains, such as "test.example.ddns.net". Cloudflare supports subdomains of any level, as long as they are properly delegated to Cloudflare.
3. All Cloudflare plans support adding subdomains, including 4th level subdomains. There is no specific limit on the number of subdomains you can add, but there are some limitations on the number of DNS records you can create. The free plan has a limit of 100 DNS records per zone, while the paid plans have higher limits. For more information, you can refer to the Cloudflare pricing page: https://www.cloudflare.com/plans/
4. One potential issue with this setup is that you will need to ensure that your dynamic DNS updates are properly configured and working correctly. If your IP address changes frequently, you will need to make sure that your DNS records are updated quickly to reflect the new IP address. You can use the Cloudflare API to automate this process, but you will need to set up a script or service to monitor your IP address and update the DNS records accordingly.
Additionally, you may want to consider using a third-party dynamic DNS client, such as ddclient, to update your DNS records. ddclient is a popular open-source client that supports Cloudflare and can be configured to update your DNS records automatically. For more information, you can refer to the ddclient documentation: https://github.com/ddclient/ddclient
Sources
Feedback
Feedback has been submitted! Thank you :)
This is an AI generated response, it may not be 100% accurate. Please validate the output. You can ask followups by replying to this message or mentioning me.