Dynamic DNS shell script
Posted by: mko
Posted on: 2007-10-27 17:07:00
Hi.
I'm using an old computer at home as a web server and has created a subdomain for it in the DNS settings. Since the computer is old and runs an old version of Mac OS, I can't run curl or anything similar to update the DNS record.
I have an SSH client and wants to use the SSH method from the wiki.
Let's say I have subdomain.domain.tld. Then I'm using these settings:
USER="my-very-secret-panel-login-email-address"
PASS="my-very-secret-panel-login-password"
DOMAIN="domain.tld"
HOST="subdomain"
RECTYPE="A"
But when I'm running the script on the server (at DH) I get these messages:
IP address changed from (no cache) to 85.225.114.55; updating.
Loading Dreamhost Web Admin Panel...
Logging in to Dreamhost Web Admin Panel...
Retrieving domain management page...
copland.sh: line 54: unexpected EOF while looking for matching `"'
copland.sh: line 55: syntax error: unexpected end of file
Any ideas?