Re: random host

From: Date: Wed, 14 May 2003 16:23:46 +0000
Subject: Re: random host
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17633@lists.php.net to get a copy of this message
DNS cache of the a record in a zone can be set differently than the rest of the zone. So you can basically do that clients will check the hostname again and again, even every 20 seconds if you want. The way to do it is quite simple: random 10m IN A 1.2.3.4 random 10m IN A 4.3.2.1 etc... and that way every time the site is accessed, the hostname is re-checked... On Wed, 14 May 2003, Gabor Hojtsy wrote: > Hi! > > > an idea just popped into my head... random hosts. Would anyone see anything > > broken with random.php.net just taking a host to a random mirror which is > > not www? I'm thinking for apps that point to php.net (eg docref root) etc, > > as this would reduce some load on the server... when the country redirect > > stuff gets baked, and auto-redirect works, then it'll take the user to their > > closest mirror... > > Yep. I proposed adding my.php.net for this task earlier, but guys said > we should reserve my.php.net for the Malaysia, and it is already > registered for Malaysia. So I think this is a good idea. > > > thoughts? > > sane ways of implementing it? :) > > The main consern about it is that we test hosts every hour. So we have > info on whether the host was up the last hour or not. What if > random.php.net redirects a user to a server which is down? > > About the implementation, I don't really know how to do it, but someone > said DNS caches will be hard to overcome. This is not a huge problem for > random mirrors, but for a "my mirror" it is... > > Goba > -- Best regards, Shimi ---- "Outlook is a massive flaming horrid blatant security violation, which also happens to be a mail reader." "Sure UNIX is user friendly; it's just picky about who its friends are."

« previous php.mirrors (#17633) next »