The following forum message was posted by venparth73 at http://sourceforge.net/projects/ddclient/forums/forum/399428/topic/3852898:
Hello, I have been struggling to configure ddclient for the last week. Could
some one help me for my requirement of just getting the current DNS IP address
from my router and writing it to a text file.
I was able to figure out how to reach my router's page and fetch the IP address,
however, I was unable to figure out the variable in which the fetched IP address
was stored. (I do not know PERL at all, though the perl -d helped in getting
a peek into the flow.) I read in a thread "Run program via ddclient using discovered
IP" that you could use a script in the postscript= command.
Based on the comments in the above thread, I wrote this wrapper script.
#/bin/bash
logger -t MyScript Update $1
echo $1 > /home/xxxxxxxx/Desktop/FoundIP.txt
The command ddclient -query returns the correct IP address from the router.
Could anyone help me to just read the IP address from the router and write it
to a file on the desktop?
Venkat.
|