返回列表 發帖

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

一般DNS服务器,如果ip地址更新了,去刷新的话,不应该算abuse吧!

TOP

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.

TOP

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?

TOP

本帖最後由 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.

TOP

返回列表