How to Update Dynamic IP To DNS Records?
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.
-
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.
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.0
Please sign in to leave a comment.
Comments
1 comment