Board logo

標題: send email for your dynamic ip [打印本頁]

作者: ckleea    時間: 2010-9-2 21:48     標題: send email for your dynamic ip

Very often we are on dynamic ip provided by your ISP.

I recently encountered problem with the ISP. As such my router keeps on updating the dynamic DNS. At the end, it is considered as abuse and my domain is blocked.

I have tried another way to get your dynamic ip address. At least you can have a temporary access using IP address

Require the following software
smtp-cli
see the following link to install and also dependencies
http://www.logix.cz/michal/devel/smtp-cli/

create a script e.g. emailip like this

#!/usr/bin/perl

`wget http://checkip.dyndns.org`;
`smtp-cli --from xxxx@domain1.com --to yyyy@gmail.com --subject "Your_ip_address " --attach index.html --host=your smtp host --user=username  --pass=zzzzz`;
`rm index.html`;

chmod +x emailip

run it as sh emailip

You will receive an email like this

Current IP Address: xxx.yyy.zzz.nnn

Lastly if success, add it as cron job.
Remember it is a backup
作者: kermit    時間: 2010-9-4 23:16

一般DNS服务器,如果ip地址更新了,去刷新的话,不应该算abuse吧!
作者: ckleea    時間: 2010-9-5 07:04

As said, it is for backup purpose. Normally dynamic DNS clients work but I made it because my connection with ISP has problem. Very frequent connection disconnection. Even the IP is the same, the dynamic DNS client still considers a change and update.
作者: bubblestar    時間: 2010-9-5 12:14

To my understanding, the connection-disconnection-reconnection happens in every 2 hours will not be treated as abused.  Is your ISP change IP frequently in such a manner less than 2 hours?
作者: ckleea    時間: 2010-9-5 13:03

本帖最後由 ckleea 於 2010-9-5 13:50 編輯

Problems occurred last week. Just liked what we had in the past for ADSL. They have fixed the line.




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2