^jh^ has asked for the wisdom of the Perl Monks concerning the following question:

I plan to link my subdomain irc.mydomain.net to a friend irc server which use a dynamic IP adress.
So when I take my irc client and I connect to irc.mydomain.net I would get into my friend's server.
My question is I don't really know where to start, and my real problem is It would be easy if I was playing with HTML because I would have just a little script running on the server on demand who wait a signal from my friend with his ip. Maybe I can use the same structure for it ?

$me->think(NULL);

Replies are listed 'Best First'.
Re: Some dynamic redirecting
by valdez (Monsignor) on Jul 05, 2003 at 13:59 UTC

    If you can reconfigure your DNS, then there is DNS::Config on CPAN that can help you managing zones. You should wait a notification from your friend (for example a simple cgi script that grabs remote address) and then update your DNS config file accordingly. I'm not sure, but I think there is already a packaged software that does what you need.

    HTH, Valerio

Re: Some dynamic redirecting
by Mr_Person (Hermit) on Jul 05, 2003 at 16:19 UTC
    You probably want to use something like DynDNS, there are many clients already written to update on connect if your friend uses dialup, whenever your address changes via DHCP if they have cable, or even just check every so often. I'm not sure if you can only make a subdomain of your domain dynamic, but I know they can manage your entire domain for you (for a small donation, IIRC) or you can use one of their domains like dyndns.org, dnsalias.org, etc for free.