I need help setting up Opendns, OpenDNS Dynamic IP updater client"ddclient"?

Comments

17 comments

  • Avatar
    slipslidinaway

    I realize this thread is old but OpenDNS now requires special characters in passwords. I used an asterisk (*) in my password and it worked for me.

    1
    Comment actions Permalink
  • Avatar
    linfidel

    The problem looks like one I finally solved after much, much trouble, no thanks to the useless VIP support.

    The single quotes around the password field are not ASCII, and if you copy/paste the code, it will fail.  Replacing the quotes with normal text quotes will fix it.  I reported this error today, although my experience with support leads me to believe it will not accomplish anything.

    1
    Comment actions Permalink
  • Avatar
    rotblitz

    "FAILED:   updating all.dnsomatic.com: authorization failed (HTTP/1.1 401 Unauthorized"

    You'll need to check your user ID (= e-mail address) and password in the ddclient.conf file.  The password must not contain special characters reserved for URL encoding.

    0
    Comment actions Permalink
  • Avatar
    Chris Frost

    I agree with rotblitz, I would check your password in the ddclient.conf file and make sure the password does not contain any special characters. 

    0
    Comment actions Permalink
  • Avatar
    rotblitz

    "The correct domain should be myip.dnsomatic.com."

    Oops, I'm afraid this is a mistake. The domain/site myip.dnsomatic.com is for checking the IP address only, but all.dnsomatic.com is a pseudo-hostname to be used in updates to updates.dnsomatic.com.

    http://myip.dnsomatic.com/

    updates.dnsomatic.com/nic/update?hostname=all.dnsomatic.com

    0
    Comment actions Permalink
  • Avatar
    tr-odns

    Same here.  It still fails if you use & though.

    0
    Comment actions Permalink
  • Avatar
    rotblitz (Edited )

    What information can you provide, so that we can provide help?  "It does not work" is never ever a way to proceed...

    0
    Comment actions Permalink
  • Avatar
    tr-odns

    How odd: I've received an e-mail saying there's another comment on this thread, but I go back here and it's not there.  Anyway, the other comment suggests my previous comment was unclear.  What I meant was, if I put an & in my password, I get the same 401 Unauthorized error that Anthony Honciano mentioned above.  I have solved this by replacing the & with a *.

    0
    Comment actions Permalink
  • Avatar
    rotblitz

    Well, my message went into "pending approval" status, therefore you didn't find it when you came back. 
    (Also this message may land in "pending approval" first, I only know after submitting it.)

    Glad to hear that you could solve the problem.

    0
    Comment actions Permalink
  • Avatar
    rikinet (Edited )
     
    A current problem is the failure of OpenDns with ddclient. I have managed to solve the problem in a not very decent way.
    
    Something like that:
    sudo nano /var/cache/ddclient/ddclient.cache
    
    and add ip=0.0.0.0 at the end of the sequence of variables, just before your 'opendns_network_label'
    
    Apparently, it doesn't work because that data is empty.
    approximate content of ddclient.cache would this be

    ## ddclient-3.9.0
    ## last updated at Mon Nov 4 02:44:29 2019 (1572846269)
    atime=0,backupmx=0,custom=0,host=lavelme,ip=0.0.0.0,mtime=1572845979,mx=,script=/nic/update,static=0,status=good,warned-min-error-interval=0,warned-min-interval=0,wildcard=0,wtime=30 lavelme

    I hope it helps you

     

    0
    Comment actions Permalink
  • Avatar
    adrian_vg

    Hello all!

    In response to https://support.opendns.com/hc/en-us/community/posts/220035467/comments/360000138283:

     

    It didn't help for me.
    My password is sixteen characters long, with small and capital letters and some numbers, as well as an asterisk at the end.

    Getting this:

     

    FAILED:   updating 'Home': authorization failed (HTTP/1.0 401 Unauthorized
    FAILED:    date: Sun, 29 Dec 2019 16:51:42 GMT
    FAILED:    server: opendns
    FAILED:    www-authenticate: Basic realm="RESTRICTED"
    FAILED:    content-length: 7
    FAILED:    content-type: text/html; charset=UTF-8
    FAILED:    x-xss-protection: 1; mode=block
    FAILED:    x-ingress-point: lon
    FAILED:    connection: close
    FAILED:   
    FAILED:    badauth)

     

    Running the ddclient on a CentOS 6-server

    Not sure what else to try. Any advice?

    0
    Comment actions Permalink
  • Avatar
    rotblitz

    How does your ddclient.conf file look like?

    0
    Comment actions Permalink
  • Avatar
    adrian_vg

    Yupp, forgot that. Sorry.

    I based the config on info from https://support.opendns.com/hc/en-us/articles/227987727-Linux-IP-Updater-for-Dynamic-Networks.

     

    daemon=300
    syslog=yes
    mail-failure=root
    pid=/var/run/ddclient/ddclient.pid
    ssl=yes

    ##
    ## OpenDNS.com account-configuration
    ##
    protocol=dyndns2
    use=web, web=myip.dnsomatic.com
    ssl=yes
    server=updates.opendns.com
    login='my.email.address@someprovider.com'
    password=‘longpasswordendingwithanasterisk’
    Home

     

     

     

     

    0
    Comment actions Permalink
  • Avatar
    rotblitz

    This looks good. I ran out of ideas. Raise a support ticket, link “submit a request” above.

    0
    Comment actions Permalink
  • Avatar
    adrian_vg

    Ok, thanks for checking!

    Late yesterday evening, I did some digging, turns out my router, an oldish Asus RT-N56U with custom ROM installed, has a dDNS-feature.

    On a hunch I entered the OpenDNS-credentials etc, chose www.dnsomatic.com as the service provider and hit apply - and what do you know, it worked!
    The router itself is now updating the WAN-IP to OpenDNS. So far all is A-okay!

    Would have been nice to know though, just why it doesn't work for me using the ddclient...
    Oh, well, I'll dig into that problem later, for now it works.

    Thanks all for the hints, tips and tricks!


    0
    Comment actions Permalink
  • Avatar
    Anthony Honciano

    In addition to the above suggestions, please double check the server name, because I see this in the results:

    FAILED:   updating all.dnsomatic.com: authorization failed (HTTP/1.1 401 Unauthorized 

    The correct domain should be myip.dnsomatic.com. Please double check the config file running the following command:

    sudo nano /etc/ddclient.conf

    Then update the domain name and ensure that the username and password is correct with no special characters - only alphanumeric passwords are accepted. Also, note one of the comments in the URL rotblitz provided, to add apostrophe's before and after your password in the config file. This can be changed at https://dashboard.opendns.com/myaccount/password

    Then restart the app:

    sudo /etc/init.d/ddclient restart

    We've received your support ticket and replied back with the same information, however feel free to reply back to this post with your results.

     

    -1
    Comment actions Permalink

Please sign in to leave a comment.