You are not logged in.
Dear community,
I registered two domains at Namecheap and want them both to point to my daily changing IP. I know, there is DDclient, but it looks like it's not maintained anymore and it does not work with multiple domains. Fortunately, Namecheap offers a "browser update method" where I can just use the URL: https://dynamicdns.park-your-domain.com … mypassword.
This works just fine using firefox on my laptop (also arch), but I want it to be automated on my archlinux (ARM) server with cron. As some scripts on github suggest, I could just use curl followed by the URL to update my IP. Unfortunately, I always get an error that I do not understand:
[amo@AmoNotebook ~]$ curl https://dynamicdns.park-your-domain.com/update?host=@&domain=fickmonsta.de&password=********
[4] 24143
[5] 24144
[amo@AmoNotebook ~]$ <?xml version="1.0"?><interface-response><Command>SETDNSHOST</Command><Language>eng</Language><ErrCount>1</ErrCount><errors><Err1>Domain name not found</Err1></errors><ResponseCount>1</ResponseCount><responses><response><ResponseNumber>316153</ResponseNumber><ResponseString>Validation error; not found; domain name(s)</ResponseString></response></responses><Done>true</Done><debug><![CDATA[]]></debug></interface-response>
At this point I have to cancel the operation using ctrl+c and then I get this:
[4] Done curl https://dynamicdns.park-your-domain.com/update?host=@
[5] Done domain=fickmonsta.de
I get the same error on both my laptop and the server, and with both curl or wget. I already spent 3 hours in chats with the namecheap support but apparently on their side everything is fine and they confirmed that it sould work the way I try with curl.
Does anyone have an idea?
Thanks in advance!
Amo
Last edited by amo (2016-12-04 13:01:23)
Offline
your shell is expanding the & character: put quotes:
$ curl "https://dynamicdns.park-your-domain.com/update?host=@&domain=fickmonsta.de&password=********"
Offline
Oh wow, you are my savior!
It works fine now! ... I kinda feel stupid for not having thought about this.
Thank you a lot!!!
Offline