LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-05-2015, 09:19 AM   #1
tommy_angelo
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
Error Messages when Inadyn reapplies IP to dynamic DNS on Raspberry Pi


Hello,

While i keep having access from outside my home network when hitting my "freedns" dynamic DNS, when typing "more /var/log/messages |grep INADYN" it gives me the errors below.

I wonder what's wrong as i am not losing connection to my home IP address at any point despite the increased number disconnections i am getting because of my bad home line.

Maybe i should put something on "freedns" site?

Below are the logs i am getting right after i am disconnecting and rasp inadyn daemon applies the new ip to the dynamic DNS:

Quote:
Feb 4 23:26:52 myraspberrypi INADYN[1998]: INADYN: Started 'INADYN version 1.96.2' - dynamic DNS updater.

Feb 4 23:26:53 myraspberrypi INADYN[1998]: I:INADYN: IP address for alias 'mydnsname.freednsdomain.com' needs update to 'x.x.x.x'

Feb 4 23:26:55 myraspberrypi INADYN[1998]: I:INADYN: Alias 'mydnsname.freednsdomain.com' to IP 'x.x.x.x' updated successful.

Feb 4 23:36:52 myraspberrypi INADYN[1998]: W: DYNDNS: Error 'RC_IP_CONNECT_FAILED' (0x13) when talking to IP server

Feb 4 23:36:52 myraspberrypi INADYN[1998]: W:'RC_IP_CONNECT_FAILED' (0x13) updating the IPs. (it 13)

Feb 4 23:41:31 myraspberrypi INADYN[1998]: W: DYNDNS: Error 'RC_IP_CONNECT_FAILED' (0x13) when talking to IP server

Feb 4 23:41:31 myraspberrypi INADYN[1998]: W:'RC_IP_CONNECT_FAILED' (0x13) updating the IPs. (it 17)
As i am not too experienced on Linux and on Unix based systems, i would appreciate if someone has something to add on this.

Thanks.
 
Old 02-05-2015, 08:30 PM   #2
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
I don't know about Inadyn, I wrote my own script which I run every 4 hours using cron.

It's not that hard:
Code:
#!/bin/bash

myfreednsrc=$HOME/.freedns
runlog=$myfreednsrc/client.log
lastipfile=$myfreednsrc/lastipaddress
lastip=
#ipaddsrc="http://bot.whatismyipaddress.com/"
ipaddsrc="http://api.ipify.org"

if [ ! -d $myfreednsrc ]
then
   mkdir -p $myfreednsrc;
fi

ipaddress=$( wget --quiet -O - "$ipaddsrc" )

if [ -z "$ipaddress" ]
then
   echo "$(date +'%F %T'): Could not determine IP from ${ipaddsrc}" >>$runlog;
else
   if [ -f $lastipfile ] && [ -n "$ipaddress" ]
   then
      lastip=$(<$lastipfile)
      if [ "$lastip" != "$ipaddress" ]
      then
         echo "$(date +'%F %T'): updating IP to $ipaddress" >>$runlog;
         curl -sS 'http://freedns.afraid.org/dynamic/update.php?<put your freedns key here>'>>$runlog;
      else
         echo "$(date +'%F %T'): No change, NOT updating IP to $ipaddress" >>$runlog;
      fi
   else
      echo "$(date +'%F %T'): No lastip, NOT updating IP to $ipaddress" >>$runlog;
   fi

   if [ -n "$ipaddress" ]
   then
      echo -n $ipaddress >$lastipfile;
   fi
fi

Last edited by pwalden; 02-06-2015 at 02:11 PM. Reason: correction
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using grep to output error messages in /var/log/messages and using a loop? Billy_6052 Linux - Server 4 12-14-2014 11:01 AM
Restricting Dynamic Ipaddress by based on Dynamic DNS host names karthik9110 Linux - Newbie 5 12-13-2009 11:46 PM
DNS-error in /var/log/messages - dns_master_load: :2: no current owner name lapicella27 Red Hat 0 04-21-2006 03:35 PM
Dynamic DNS - DHCP Error Log HKDude Linux - Networking 4 08-30-2004 01:17 PM
dns error messages in openbsd 3.1 glock19 Linux - Networking 2 06-25-2002 04:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration