Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get ip and send it to email / ddclient (NOT SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Sun Sep 17, 2006 12:13 am    Post subject: How to get ip and send it to email / ddclient (NOT SOLVED) Reply with quote

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
View user's profile Send private message
heitor.federico
n00b
n00b


Joined: 06 May 2006
Posts: 3

PostPosted: Sun Sep 17, 2006 12:33 am    Post subject: Reply with quote

Hello there:D:D

Maybe you could try ddclient and set a dynamic host for you in one of the free dynamic dns service providers:D: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
View user's profile Send private message
hilbert_space
n00b
n00b


Joined: 26 Jun 2006
Posts: 34
Location: 50°8'11" N 8°17'41" E

PostPosted: Sun Sep 17, 2006 12:37 am    Post subject: Reply with quote

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
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Sun Sep 17, 2006 12:52 am    Post subject: Reply with quote

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
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Mon Sep 18, 2006 1:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Thu Nov 02, 2006 5:45 pm    Post subject: Reply with quote

Bump.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
Kobboi
l33t
l33t


Joined: 29 Jul 2005
Posts: 673
Location: Belgium

PostPosted: Thu Nov 02, 2006 8:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum