Skip to main content

Dynamic DNS Server WHM API PHP

Comments

8 comments

  • CanadaGuy
    So I took those two examples I posted and wrote a php script that is mostly compatible with the DynDNS "protocol". There isn't as much to it as I thought. I need to clean up and workout the authentication part still but if anyone is interested, I'd be happy to share. You need to create a WHM API token for it to work. You then configure a sub-domain to act as the update server where you drop the php script and .htaccess file. Then you configure your DDNS client to point at the server, use DynDNS protocol (if necessary) and go to town. It could still use some improvements to flexibility and robustness I'm sure.
    0
  • cPanelMichael
    Hello @CanadaGuy, Feel free to share the script here, or perhaps create a GitHub repo for it and share the link. You may also find the following GitHub repo helpful: CpanelInc/cpanel-dynamicdns-tools Thank you.
    0
  • CanadaGuy
    Hello @CanadaGuy, Feel free to share the script here, or perhaps create a GitHub repo for it and share the link. You may also find the following GitHub repo helpful:
    0
  • CanadaGuy
    Hello @CanadaGuy, Feel free to share the script here, or perhaps create a GitHub repo for it and share the link.

    Here is my code (but I'm not a coder in general). I still need to update the readme with how to use it. github.com/CanadaGuy/cpanel-ddns
    0
  • ddaddy
    Thanks for this. I"ll give this a go. You mentioned you wanted to use tokens but I see it requires username and password. Could you not get tokens working?
    0
  • CanadaGuy
    Thanks for this. I"ll give this a go. You mentioned you wanted to use tokens but I see it requires username and password. Could you not get tokens working?

    To be honest, I don't remember what my motivations were for login vs tokens at the time. Every time I learn something new it pushes old stuff out of my brain. If you think I could help, let me know. It does take a bit of setup to make it work, but interestingly everyone seems to use the Dyn DNS API, even Google, so feel free to extend on the work or whatever.
    0
  • ddaddy
    All up and running with my DD-WRT router automatically updating my DDNS. I can cancel my Dyn subscription now. Thanks
    0
  • CanadaGuy
    Thanks for this. I"ll give this a go. You mentioned you wanted to use tokens but I see it requires username and password. Could you not get tokens working?

    I updated my script at raceybe/cpanel-ddns which now takes user:password or user:token if anyone is interested
    0

Please sign in to leave a comment.