spacecabbie
Verified User
Hi and Hello,
Could some one give me a one line sh script code (i can make the rest) to instruct the direct admin api to update sub.domain.com and/or domain.com with ip from a variable.
I have several older dyndns scripts none of them currently working and i use it very limited so just need a quick very sloppy dirty fix. (hmmm i do like dirty)
so it wil function untill i have time to study the sh script and fix it.
So i want to translate this Cool talk script.
So kind of need this translated to .sh cause for some reason centos doesn't understand that script i wrote.
Could some one give me a one line sh script code (i can make the rest) to instruct the direct admin api to update sub.domain.com and/or domain.com with ip from a variable.
I have several older dyndns scripts none of them currently working and i use it very limited so just need a quick very sloppy dirty fix. (hmmm i do like dirty)
so it wil function untill i have time to study the sh script and fix it.
So i want to translate this Cool talk script.
Code:
Get ip of current system and store it in varaible $ip
connect to directadmin api remoterly
Update $ip for $domain/subdomain Overwrite ip or create domain.

Last edited: