View previous topic :: View next topic |
Author |
Message |
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Sun Sep 17, 2006 12:13 am Post subject: How to get ip and send it to email / ddclient (NOT SOLVED) |
|
|
I need to send the ip that a computer gets at boot (when connected to internet) to a certain e-mail address.
This computer is connected via adsl.
How to do this?
I need this, so I can ssh to this computer, but the ip addres changes every time the remote computer boots, so I thought to send it to my mail every time. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu
Last edited by zxy on Mon Sep 18, 2006 2:30 pm; edited 3 times in total |
|
Back to top |
|
|
heitor.federico n00b
Joined: 06 May 2006 Posts: 3
|
Posted: Sun Sep 17, 2006 12:33 am Post subject: |
|
|
Hello there:D
Maybe you could try ddclient and set a dynamic host for you in one of the free dynamic dns service providers:D
here's a howto you could follow:D
Good luck:D
http://gentoo-wiki.com/HOWTO_Dynamic_DNS _________________ Heitor Honda Federico
São Paulo -- Brazil |
|
Back to top |
|
|
hilbert_space n00b
Joined: 26 Jun 2006 Posts: 34 Location: 50°8'11" N 8°17'41" E
|
Posted: Sun Sep 17, 2006 12:37 am Post subject: |
|
|
You better take dyndns than sending ips via email:
http://www.dyndns.com/
With Dyndns you get a domain like mypc.dyndns.org for free. Then you run a daemon (some adsl router do this for you) that reports the ip for, there is also a little tool in the portage:
http://gentoo-portage.com/net-dns/ddclient
-Thomas |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Sun Sep 17, 2006 12:52 am Post subject: |
|
|
I just created an DynDNS account.
I thought to send it via email, would be simpler, but maybe DynDNS is better.
Thank you. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Mon Sep 18, 2006 1:35 pm Post subject: |
|
|
I can't get ddclient to update the ip.
this is my configuration file.
I can update it on the www site, but I would like it to be automatic.
Code: |
# Basic configuration file for ddclient
#
# /etc/ddclient.conf
daemon=60
pid=/var/run/ddclient/ddclient.pid
use=web, web=checkip.dyndns.org/, web-skip='IP Address'
#use=web
login=zxy
password=zxy-password
protocol=dyndns2
server=members.dyndns.org
#mx=drzile.dyndns.org
#wildcard=YES
xxxxxxx.dyndns.org
#custom=yes, example.com
|
Any Ideas? _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Thu Nov 02, 2006 5:45 pm Post subject: |
|
|
Bump. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
Kobboi l33t
Joined: 29 Jul 2005 Posts: 673 Location: Belgium
|
Posted: Thu Nov 02, 2006 8:18 pm Post subject: |
|
|
Have you added ddclient to the list of services to start at boot/default?
Code: | rc-update add ddclient default |
If you already did that, what exactly are the log/error messages telling you?[/code] |
|
Back to top |
|
|
|