Anyone made a dynamic IP address appear to be static?
I think I've got away to do it.
I've got a linux system at work acting as a gateway for the office. It
has a domain name and is a DNS.
At home I dial into the Internet using a dial-up account with another
provider. This account has a dynamic IP address.
I was thinking what if the current IP address for the home PC was put
onto the DNS file at work - it could then be accessed via the name.
I've tried this by adding the line
homepc IN A 184.108.40.2068
where the IP address is the current dynamic address.
Now while I stay logged on anyone can access me with
Now what I need to workout is how to have my work linux computer
update the DNS file automatically.
My dial-up provider can be fingered to get my address so theoretically
my work machine should be able to find my IP. The finger looks like:
Port What User Location When Idle
1 PPP username --- 7:50am :16
So with a grep on the user name the IP address could be found.
Then it just needs to recreate the DNS file with the updated info.
This could a run in a loop, say every 5 minutes.
Anyone done this before???? Any thoughts on it's viablilty?