RE: Checking URLS across a cluster.

"J.Slee" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>

>Could you create a script that added/modified entries to your hosts
>file that forced the domain you're trying to reach to have a specific
>IP address?


I have just been thinking about that, but I am looking at doing this for
about 20 - 30 sites and modifying the hosts file and probably doing a
flush of the DNS cache between each check is a little heavy handed.  I
was rather hoping there was some method in the LWP module to direct the
GET request to a specific IP address, rather than letting it work it out
for itself from the supplied URL.

Jamie

P.S. the netcat suggestion looked interesting but this is running from a
Windows host - well it is presently.




========================================================================
====
On 4/10/06, J.Slee <[email protected]> wrote:
>> > What I'm hearing you say is that the DNS is round-robin DNS, so
that
>>> there are three possible IP addresses that come back for foo.com.
>>>
>>
>> No, I obviously am not being clear.  The DNS lookup comes back with
one
>> address from the lookup, which is the virtual IP address of the
cluster.
>>
>> I want to be able to avoid using DNS lookup and tell the LWP module
when
>> it does a GET request to use the specific IP address of each host in
the
>> cluster, so I know that I have checked each one as being available
and
>> placed an entry in the ISS log file.
>
>
>
>> Unfortunately  I can't replace the host part of the URL with the
>> specific IP address for each host as I need to have the URL looking
like
>> http://hostname.mydomain/ <http://hostname.mydomain/>   as it is
>> redirected to a specific virtual web site using host headers.
>
>
>
>> Regards Jamie
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.