1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Php auto hosting server ip change script

Discussion in 'PHP & Perl' started by Dexter6996, Feb 24, 2016.

  1. Dexter6996

    Dexter6996 Newbie

    Joined:
    Oct 13, 2015
    Messages:
    44
    Likes Received:
    1
    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 ???
     
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    974
    Likes Received:
    680
    Occupation:
    Web/Bot Developer
    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: Feb 25, 2016
  3. blackice6666

    blackice6666 Regular Member

    Joined:
    Nov 20, 2014
    Messages:
    233
    Likes Received:
    92
    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?
     
  4. Dexter6996

    Dexter6996 Newbie

    Joined:
    Oct 13, 2015
    Messages:
    44
    Likes Received:
    1


    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 ...
     
  5. Anakyl

    Anakyl Regular Member

    Joined:
    Mar 29, 2016
    Messages:
    211
    Likes Received:
    41
    Gender:
    Male
    Home Page:
    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.