Php auto hosting server ip change script

Dexter6996

BANNED
Joined
Oct 13, 2015
Messages
70
Reaction score
2
Hi ,

I am looking for a solution to change my hosting's ip automatically after a certain time ....

Guess , i have a Dedicated hosting & i have 30 ips . Now i want to change my ip per 45minutes automatically.

Is it Possible ???
 
Yes it's possible. If your server is Linux based you can automate the following procedure using a shell script that is run every 45 minutes via a cron.

Code:
http://www.howtogeek.com/118337/stupid-geek-tricks-change-your-ip-address-from-the-command-line-in-linux/

Edit: corrected link
 
Last edited:
Yes it's possible. If your server is Linux based you can automate the following procedure using a shell script that is run every 45 minutes via a cron.

Code:
http://www.cyberciti.biz/faq/centos-hostname-change-command-line/

MrBlue, that guide is just to change the local hostname, it will not change the IP.

If you want to change the IP of the server you have to make apache or whatever webserver u are using available to all the IP's and then you should find a way to update your DNS records to be changed every 45mins. However i dont think this is a good way because DNS servers take some time to propagate.

This tho will be for the IP address of your website. If you want to change the IP that the server accesses the internet then this is something else.

Can you be more specific on what you want to do?
 
MrBlue, that guide is just to change the local hostname, it will not change the IP.

If you want to change the IP of the server you have to make apache or whatever webserver u are using available to all the IP's and then you should find a way to update your DNS records to be changed every 45mins. However i dont think this is a good way because DNS servers take some time to propagate.

This tho will be for the IP address of your website. If you want to change the IP that the server accesses the internet then this is something else.

Can you be more specific on what you want to do?



I want to do mass mailing .. i need to change my ip ... i use bluehost vps .. they provide many ip ... so i want to change my ip one by one automatically after 45 mins or wtever ...
 
If you are not trying to send phishing emails, why dont you try to use sendgrid SMTP service? It's really cheap and you do not need to config, verify DKIM, SPF ..etc.
 
Back
Top