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.


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

Its GNU/

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

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
NVIDIA nForce2 Dual Head 64 MB Graphics

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

Its GNU/

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3

Okay, i don't know awk or anything, but I did try fooling around with it, and came up with the following. This returns your externel IP (useful if you are behind a router because your eth0 interface will only give you your local IP address.

I know this can be made smarter and shorter, so please let me know.

lynx -source | awk 'BEGIN {FS=" "};{print $4}' | awk 'BEGIN {FS="<"};{print $1}

Okay, when i got home i set this up, I get the following output:

eulogy cron.d # sh command substitution: line 1: unexpected EOF while looking for matching `'' command substitution: line 2: syntax error: unexpected end of file
<SUCCESS CODE="200" TEXT="Update succeeded." ZONE="" HOST="" IP=""><SUCCESS CODE="201" TEXT="No records need updating." ZONE="" HOST="">
eulogy cron.d #

Lines 1 and 2 are:



So, I should probably just ignore those errors right? it looks like it still worked.

Corey Quilliam
(former) Administrator

Want to help out Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
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 March 2018 - 10:06 PM