The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Update Dynamic IP To DNS Records?

Discussion in 'General Discussion' started by tui, Feb 27, 2017.

  1. tui

    tui Well-Known Member

    Joined:
    Jun 15, 2007
    Messages:
    50
    Likes Received:
    4
    Trophy Points:
    58
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Hello all,
    ___________
    Short scenario:

    I want my home server (my isp only provide dynamic ip) to update its ip to a dns record on my cpanel account.
    ___________

    I was reading the solution of nick in this thread (Can cPanel Update Dynamic IP Information To DNS Records?) but im a bit paranoid about security, although this solution is perfect, the script needs to send your cpanel credentials to the cpanel server and i dont like too much this, also its a raspberry.

    So i prefer a solution that allows me to execute a script inside the cpanel server like a php script (there are too many samples too like this one ariyanki.net/php/?act=read&id=143 How to make your own Dynamic DNS Server with CPANEL API 2) and call it with wget, however, again the php script need to have (in plain text) your cpanel credentials and if a error occurs in a update or something, your cpanel credentialas can be exposed/leaked.

    Is there a way to call cpanel api inside the cpanel account and avoid using your credentials? i mean, if the php script runs inside the cpanel user there is no need to put credentials because its already inside the account that i want to change the zone.

    Or, What would you suggest to achieve this without risking your cpanel credentials?

    BTW, this cPanel request (Multiple cPanel Logins (cPanel Subusers)) should be very useful on this case to create an account that allow only modify dns zones.
     
    #1 tui, Feb 27, 2017
    Last edited by a moderator: Feb 27, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,979
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The access hash authentication feature is only available to WHM logins as opposed to cPanel logins. You can see a list of all available API authentication methods at:

    Guide to API Authentication - Software Development Kit - cPanel Documentation

    Thank you.
     
Loading...

Share This Page