Dynamic DNS shell script

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?

Re: Dynamic DNS shell script

Posted by: Atropos7
Posted on: 2007-10-27 17:38:00

In reply to:

Any ideas?


I'm probably stating the obvious, but from what I can tell the domain management page is not matching the regexp in the call to sed.

Sounds like someone needs to modify the regexp or improve upon the logic.





cool openvein.org -//-

Tags: ssh clientemailsubdomainadmin panelweb admindreamhosttldsyntax errorshell scriptunexpected eofdns settingsdns recorddomain managementdynamic dnsold computerold versiondhssh clientemailsubdomainadmin panelweb admindreamhosttldsyntax errorshell scriptunexpected eofdns settingsdns recorddomain managementdynamic dnsold computerold versiondh