When a URL Request Occurs, How do I bypass the DNS and direc

A

Ace Fekay [MVP]

In
csabanty said:
Hello all,

Say I have a site called http://www.example.com.

Iâ?Tm looking for a way to do the following:

When the request for http://www.example.com comes in Iâ?Td like it to
bypass the DNS and instead have it re-direct to a certain IP.

Any help would be greatly appreciated.

I don't understand what you mean by "bypass DNS"? DNS is a database mapping
of names to IP addresses. Resolution queries for names are sent to it, and
it will answer with an IP address, if the name and IP address is in the DNS
database.

From what I can tell, you'll probably want to create a zone called
'excample.com', then create an A (host) record called 'www', then provide
whatever IP you want for it and it will resolve to that IP when queried.

Also, in your webserver, under the site properties, you can create a
redirect to another website. If that is what you mean, that would work. The
redirect will need to be in the form of http://www.example2.com, or
http://example2.com, or http://IpAddress. Note, if using an IP address, the
website you are redirecting to better not be using HostHeaders hosting
multiple sites, or no telling what website it will respond with.

--
Regards,
Ace

Please direct all replies ONLY to the Microsoft public newsgroups
so all can benefit.

This posting is provided "AS-IS" with no warranties or guarantees
and confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft Windows MVP - Windows Server - Directory Services
Infinite Diversities in Infinite Combinations.
=================================
 
C

csabanty

In
csabanty <[email protected]> made this post,
which I then
commented about below:

I don't understand what you mean by "bypass DNS"? DNS is a
database mapping
of names to IP addresses. Resolution queries for names are
sent to it, and
it will answer with an IP address, if the name and IP address
is in the DNS
database.

From what I can tell, you'll probably want to create a zone
called
'excample.com', then create an A (host) record called 'www',
then provide
whatever IP you want for it and it will resolve to that IP
when queried.

Also, in your webserver, under the site properties, you can
create a
redirect to another website. If that is what you mean, that
would work. The
redirect will need to be in the form of
http://www.example2.com, or
http://example2.com, or http://IpAddress. Note, if using an IP
address, the
website you are redirecting to better not be using HostHeaders
hosting
multiple sites, or no telling what website it will respond
with.

--
Regards,
Ace

Please direct all replies ONLY to the Microsoft public
newsgroups
so all can benefit.

This posting is provided "AS-IS" with no warranties or
guarantees
and confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT,
MVP
Microsoft Windows MVP - Windows Server - Directory Services
Infinite Diversities in Infinite Combinations.
=================================

I don’t know if this is possible, but what I’m trying to do is to
not use DNS. I’m running multiple web sites that DNS (by way of a
load balancer) will send to one of 9 different machines. What I want
to do is specifically match a host header to a certain machine.
Someone has suggested that the application Curl might help me with
this. Anyone have any ideas?
 
C

csabanty

csabanty said:
I don't know if this is possible, but what I'm trying to do is
to not use DNS. I'm running multiple web sites that DNS (by
way of a load balancer) will send to one of 9 different
machines. What I want to do is specifically match a host
header to a certain machine. Someone has suggested that the
application Curl might help me with this. Anyone have any
ideas?

Here’s a little more elaboration...

When I want to put new source code up I run something that clears the
cache, machine by machine. Basically, I want all requests to go to
that first machine untill all of the machines are re-compiled and
re-cached. This means that all requests will temporarily only go to
machine1 as opposed to being balanced throughout the 9.
 
A

Ace Fekay [MVP]

In
csabanty said:
Hereâ?Ts a little more elaboration...

When I want to put new source code up I run something that clears the
cache, machine by machine. Basically, I want all requests to go to
that first machine untill all of the machines are re-compiled and
re-cached. This means that all requests will temporarily only go to
machine1 as opposed to being balanced throughout the 9.

What is being load balanced, the webservers? You want to send the URL
request to a specific webserver or a DNS server? I think you mean a
webserver. If that's the case, and there's a webserver applicance being used
to load balance, such as BigIP, then BigIP will redirect the request to one
of the webservers in the webserver farm. If DNS is being used to Round Robin
the request to any one of the nine webservers, that's a difficult one to
overcome without disabling Round Robin. One way to overcome that is to use a
local hosts file specifying the IP of the specific webserver you want to use
with the hostheader. This way it always resolves to that machine.

Ace
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top