Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Server On A Non-static Ip
Jim
post May 6 2004, 11:59 AM
Post #1


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



So I don't have a tip or trick on how to do this, but I want someone to help me make one.

So I want to be able to host a ssh/apache server from my home, which has a semi-static IP address. It doesn't really change all that often, but they reserve the right to so it does every now and than. So this won't be such a big deal this summer as I will be able to have the computer infront of me if the IP changes. Whats going to screw me is when I am away from school.

So the question is any ideas on how to deal with a semi-static IP? My thought was having some sort of auto-scheduled task to e-mail me the IP when it reboots. Because it wont get new IP unless I do a network restart or a reboot on it. Than I could always have the IP. I don't even know if thats possible and or how I would do that.

Getting a staic IP isn't a financial option or even possible since they don't offer them where I am at and on home services. So how do you host a server on a semi-static IP address?


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
hughesjr
post May 26 2004, 06:17 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Here is what the cron looks like that runs these:

05 03 3 * * /usr/local/bin/monthly_update_ip >> /dev/null 2>&1
02,17,32,47 * * * * /usr/local/bin/check_ip >> /dev/null 2>&1


The first one is 3rd day of the month at 03:05 ... the other runs every hour at 02, 17, 32, and 47 after the hour.

In case you are wondering why my times are not 00,15,30,45 ... it is because the system already does things at those times (schedulaed by the system ... or on a multiple user machine, the other users) so when I schedule things, I try to offest them slightly, to minimize stuff happening all at the same time. It's just a habit I have developed as a sysadmin ... so I do it even at home on a machine that only I have access to!


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th October 2017 - 05:25 PM