Re: Getting a Dinamic Remote IP
Hi there,
I installed ddclient using apt-get but there is a error message when I
run #ddclient -debug:
myhostname:/# ddclient -debug
DEBUG: get_ip: using if, eth0 reports 201.6.77.173
WARNING: null password specified for host myhostname.homelinux.net.
yoda:/home/rssousa# ddclient -debug
DEBUG: get_ip: using if, eth0 reports 201.6.77.173
WARNING: null password specified for host myhostname.homelinux.net.
DEBUG:
DEBUG: nic_dyndns2_update -------------------
FAILED: updating d4: authorization failed (HTTP/1.1 401 Authorization Required
FAILED: Date: Fri, 20 May 2005 11:39:49 GMT
FAILED: Server: Apache/1.3.31 (Unix) mod_perl/1.29
FAILED: WWW-Authenticate: Basic realm="DynDNS Members NIC"
FAILED: Content-Type: text/html; charset=iso-8859-1
FAILED: Connection: close
FAILED:
FAILED: badauth)
I tried to edit /etc/ddclient.conf at hand but still the errors
persist. I tried to run dpkg-reconfigure for default configurations
take over my previously and it didn't work.
I checked all the information a lot of times including password
throughout the file /etc/ddclient:
myhostname:/# cat /etc/ddclient.conf
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
pid=/var/run/ddclient.pid
protocol=dyndns2
use=if, if=eth0
custom=yes
server=members.dyndns.org
login=mylogin
password=******
myhostname.homelinux.net
It might be correct. Moreover, I restart the service throghout the
/etc/init.d/ddclient restart but unfortunatelly I can connect to
dyndns.
Could somebody help me telling me if I missed to configure anything?
Thank you,
Romulo Sousa
On 5/19/05, David Powell <moondrake@optusnet.com.au> wrote:
> Just for a different take on this...
>
> In cases where you don't want to link a domain name to the dynamic IP,
> you can set up a cron job to send you the IP address via e-mail.
>
> Incidentally, I can't think of any arguments - security wise - against
> using something like dyndns, but I can't say I've put a great deal of
> thought into it. I set up a cron-job script mostly out of curiosity
> than anything (the 'there must be a way' motive). Anyway, my script
> (which borrows the key part from Douglas Ward's - thank you Douglas)
> looks like:
>
> ---start script---
> #!/bin/bash
> #get the current IP address for this connection off the internet and mail it
>
> to="someone@somewhere.com"
> subject="IP Address for x"
>
> #this next bit is on one line
> curl http://checkip.dyndns.org/ 2>/dev/null | grep "Current" | awk
> '{print $6}' | sed 's/<\/body><\/html>//' | sed 's/\///' | mail -e -s
> "$subject" "$to"
> ---end script---
>
> It works perfectly for me. Next thing I'm going to do (out of
> curiosity, best way to learn) is output the result into a file and then
> only send the e-mail when the IP address is different to what's in the
> file - i.e. only send an e-mail when the IP address changes.
>
> Cheers,
>
> Romulo Sousa wrote:
> > Hi folks,
> >
> > I would like to get an remote IP. It's about my girlfriend's computer
> > where I share some directories and install some packages. The problem
> > is that all the time I need to connect via ssh into her computer I
> > must call her asking for its IP provided by her ISP throughout
> > ifconfig output.
> > What can I do in order to get the IP from her computer all the time
> > the machine is booted? Is it possible to send a message by email, SMS
> > or whatever way to do that? Further, her computer is connected by a
> > ADSL (dinamic) and my computer uses cable modem (dinamic also).
> >
> > Best regards,
> >
> > Romulo Sousa
> >
>
> --
> David Powell _
> Information Systems Developer ASCII ribbon campaign ( )
> Moondrake Trust against HTML email X
> e: moondrake at optusnet dot com dot au / \
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
Reply to: