• Home
  • Blog
  • Projects
    • QWcrm
    • Joomla
      • mod_helloworld
      • plg_helloworld
      • QWRealURL
  • KB
    • Articles
    • Links
  • Forum
  • Stuff
    • Links
  • Search
  • Login
QuantumWarp QuantumWarp QuantumWarp
  • Home
  • Blog
  • Projects
    • QWcrm
    • Joomla
      • mod_helloworld
      • plg_helloworld
      • QWRealURL
  • KB
    • Articles
    • Links
  • Forum
  • Stuff
    • Links
  • Search
  • Home >
  • KB >
  • Links >
  • Web Server >
  • Articles >
  • cPanel >
  • Dynamic DNS >
  • JSON API & DNS Records | cPanel Forums
Plusnet - Header Banner

JSON API & DNS Records | cPanel Forums

Hi all. I tried all day yesterday to find the solution to this with no luck (and yes that did include searching the forums). So now I'm here to specifically ask.

I have a RaspberryPi at home and want to connect to it remotely but my IP address is not static. I'd really prefer not to pay for a dynamic DNS service when I'm already paying for a personal domain name and hosting service. I've already added a dns zone that points to my home and it works. I can use raspihome.domainname.com to access the RasPi.

Now I want to set up a script on my hosting account that will update the IP address as needed. My intention is to set up a cron job on the RasPi that will connect to the server script (via HTTPS) to provide it with the updated IP address.

I found the following script for using cPanel's JSON API to manange the dnszone entries. But it's not working.

The first php file is what I've got in public_html (this is the page I load in my web browser). When I load it in my browser, the page is blank. I looked at the page source code just to be sure and the following is all that's there.

Why won't it return the DNS entries?

Listing Details

https://forums.cpanel.net/threads/json-api-dns-records.350171/
Website
forums.cpanel.net/threads/json-api-dns-records.350171/
Visited
83

Legal

  • Attribution
  • DMCA
  • Privacy & Cookies
  • Terms & Conditions

Resources

  • Feedback
  • Downloads
  • Typography

QuantumWarp

  • About
  • Contact

Follow Us

  • GitHub
© QuantumWarp 2021, Powered by Astroid. Developed by QuantumWarp