How to Build Linux Web Server with Dynamic IP Address


  • Ubuntu GNU/Linux
  • Account at
  • Easy Hosting Control Panel (EHCP)
  • Router

How to:

1. Install Ubuntu.

We set local IP Address to

$ sudo nano /etc/network/interfaces

Type in the following lines:

auto eth0
iface eth0 inet static
gateway is the gateway / modem’s IP Address.

2. Install EHCP
3. Forward port 80 in your modem / router to redirect to IP Address
4. Register account at FreeDNS













5. Create subdomain at FreeDNS. For example: Input destination column with your public IP Address. You can check your public IP Address at

add new subdomain








6. Create cronjob to update DNS  every 5 minutes

$ sudo crontab -e

*/5  * * * * lynx -dump > /dev/null 2>&1

The value VG5LbWRxMzFVJDKGVdCd2hiNDo2NDgwMTQx can be retrieved from in Direct URL link.

7. Done. Check or http://your_public_ip


  • my book live web server
  • freedns afraid linux
  1. aux Reply
    • kumkum Reply

Leave a Reply

Your email address will not be published. Required fields are marked *