LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-28-2006, 02:35 PM   #1
mancmanomyst
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 mystware.co.uk 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 bbc.co.uk.

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:82.6.77.187

Router IP: 192.168.11.1
Server IP: 192.168.11.101 (Static)
 
Old 01-28-2006, 05:51 PM   #2
RHELL
Member
 
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, 09:16 PM   #3
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 30
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:
http://www.changeip.com/
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.
 
  


Reply


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 07:04 AM
setting up a webserver airmijo Linux - Newbie 6 11-15-2004 08:37 AM
Setting up a webserver fleeced Linux - General 1 09-04-2004 11:24 AM
Setting webserver enzolabrador Linux - Networking 1 08-26-2004 03:35 PM
Setting up a Webserver LinuxLala Linux - Networking 10 02-09-2004 09:44 AM


All times are GMT -5. The time now is 03:11 PM.

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