MyOnlinePortal

username password
Register for free

DynDNS HowTo DDClient for RaspberryPi


Install ddclient on RaspberryPi
  • Login via ssh to your Raspberry, on Windows with Cygwin or Putty, on Mac and Linux with Terminal
  • Install ddclient
    sudo apt-get install ddclient
                        
  • During installation, use following settings
    Dynamic DNS service provider: 			other
    Dynamic DNS server:				myonlineportal.net
    Dynamic DNS update protocol: 			dyndns2
    Username for dynamic DNS service: 		Your myonlineportal.net user
    Password for dynamic DNS service: 		Your myonlineportal.net Password
    Network interface used for dynamic DNS service: just leave it empty and klick ok
    DynDNS fully qualified domain names: 		Your full myonlineportal.net Domain
                        
Setup ddclient on RaspberryPi
  • open /etc/ddlicent.conf with an editor, for example:
    sudo nano /etc/ddclient.conf
                        
  • change content to
    # Configuration file for ddclient generated by myonlineportal.net
    #
    # /etc/ddclient.conf
    protocol=dyndns2
    ssl=yes
    server=myonlineportal.net
    use=web, web=myonlineportal.net/checkip
    login=Your Username
    password=Your Password
    Your Domain
                        
  • Finish editor with ctrl+x and "Yes" for save file.
  • Test ddclient with
    sudo ddclient
                        
Configure automatic updates
  • Open editor with
    sudo nano /etc/default/ddclient
                        
  • change line
    run_daemon=„false“
                        
    to
    run_daemon=„true“
                        
  • Finish editor with ctrl+x and "Yes" for save file.
  • Start ddclient as system deamon
    sudo /etc/init.d/ddclient start
                        
  • Check running state of ddclient system daemon with
    sudo /etc/init.d/ddclient status
                        
Configure ipv6 updates
  • You need to activate ipv6 on your RaspberryPi with (temporary until next reboot)
    sudo modprobe ipv6
                        
    Or add "ipv6" to /etc/modules (for permanently)
    sudo echo -e "ipv6" >> /etc/modules
                        
  • install necessary perl ipv6 module
    sudo apt-get install libio-socket-inet6-perl
                        
  • Ipv6 with ddclient works currently just with this fork from ddclient. Just replace your current installed version with this from the fork.
    wget -O /tmp/ddclient https://raw.githubusercontent.com/geraldhansen/ddclient/master/ddclient
    sudo chmod +x /tmp/ddclient
    sudo cp /tmp/ddclient /usr/sbin/ddclient
                        
  • Change config to use with web ip detection
    # Configuration file for ddclient generated by myonlineportal.net
    #
    # /etc/ddclient.conf
    protocol=dyndns2
    ipv6=yes
    ssl=yes
    server=myonlineportal.net
    use=web, web=myonlineportal.net/checkip
    login=Your Username
    password=Your Password
    Your Domain
                        
  • Change config to use with interface ip from interface eth0
    # Configuration file for ddclient generated by myonlineportal.net
    #
    # /etc/ddclient.conf
    protocol=dyndns2
    ipv6=yes
    ssl=yes
    server=myonlineportal.net
    use=if, if=eth0
    if-skip=Scope:Link
    login=Your Username
    password=Your Password
    Your Domain
                        

CSS Layout by Rambling Soul