Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-28-2006, 03:35 PM   #1
LQ Newbie
Registered: Jan 2006
Location: manchester
Distribution: fedora core 4 and suse 10.0
Posts: 3

Rep: Reputation: 0
Setting up webserver

Hello All,

I have bought a domain and want to host myself. I can use the domain services software to point the domain to an I.P. Address - its currently pointing at

My ISP assigns my external IP address via DHCP, therefore it could change. To stop this from happening I want to run a cron command to renew the external IP every six hours so theres no chance of losing the IP thus it would be safe for me to point my domain to the external IP for my set-up.

I have seen posts refering to dhclient but I have a feeling this would change my internal IP address and not the external one. I am completely new to this so I would appreciate as much help as possible.

The following info about my system may be relevant

Current External IP:

Router IP:
Server IP: (Static)
Old 01-28-2006, 06:51 PM   #2
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
As you say, I don't believe dhclient will help in this case, since the dchp client is the router.
Check your router manual, there are settings on some that will allow the router to maintain the 'lease' indefinitely and keep the ip from being recycled by dhcp. A combination of this and a ping heartbeat at intervals to convince the router you are still active may work indefinitely.
Isp's are in the business of charging significantly more for static ip, so it is likely they will find a way to end the party, but you never know.
Old 01-28-2006, 10:16 PM   #3
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
To get that done you'll need a Dynamic DNS service. Google around for some Dynamic DNS serivce providers (aka DynDNS or DDNS). Here's the link to what the one i'm using:
Once you get it going, you'll some clients and scripts which you can run as a cron job to keep things going smooth.

One final note: The ChangeIP service can take up to 5 mins to refresh the dns records, so if you set the updating script on your machine to run every 5 minutes, then you're looking at a worst-case scenario of being offline for 10 mins each time the IP changes.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newb Needs Help Setting Up Webserver scrupul0us Slackware 2 01-02-2006 08:04 AM
setting up a webserver airmijo Linux - Newbie 6 11-15-2004 09:37 AM
Setting up a webserver fleeced Linux - General 1 09-04-2004 12:24 PM
Setting webserver enzolabrador Linux - Networking 1 08-26-2004 04:35 PM
Setting up a Webserver LinuxLala Linux - Networking 10 02-09-2004 10:44 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration