Dynamic DNS Custom for Zeroshell

Home Page Forums Network Management ZeroShell Dynamic DNS Custom for Zeroshell

Tagged: ,

This topic contains 0 replies, has 1 voice, and was last updated by  saurom 2 months, 1 week ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #65421

    saurom
    Participant

    Auto update ip wan zeroshell for website.
    Step1:
    On the host he creates 1 database or can use the old database
    Create an additional table with sql command
    CREATE TABLE IF NOT EXISTSclient` (
    Name varchar(255) NOT NULL,
    IP varchar(255) NOT NULL,
    LastUpdate timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    HttpPort varchar(255) NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    `
    Upload file modempcip.php for hosting of websiteyour
    Download

    Step 2:
    1 / Open the STARTUP/CRON tab in System/setup
    2 / Add a job and give a name
    3 / After the #line, in a new line.
    PUBLIC_IP=wget http://ipecho.net/plain -O - -q ; echo
    URL=’http://websiteyour/modempcip.php?kh=deviceid&port=80&cmd=update&ip=’
    wget $URL$PUBLIC_IP
    4/ Choose time and date to start the script. Save it.
    5/ Re-open the startup/cron tab to make a test (it’s better)

    Step 3: Test
    http://websiteyour/modempcip.php?kh=deviceid
    That’s all

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.