multiple IP addresses to one DNS?

K

Kevin D. Goodknecht [MVP]

In Mike Barker <[email protected]> posted a question
Then Kevin replied below:
: Do you have any idea how to map multiple IP addresses to
: one DNS name.?

Make two A host RRs with the same name and two different IP addresses.
 
M

Mike Barker

Forgive me for being kind of new at this.. RRs? The
request came from someone using a couple ports on one
machine and another port on another machine...
 
K

Kevin D. Goodknecht [MVP]

In Mike Barker <[email protected]> posted a question
Then Kevin replied below:
: Forgive me for being kind of new at this.. RRs? The
:
RR= Resource Records

: request came from someone using a couple ports on one
: machine and another port on another machine...
Explain what you are saying here?
 
M

Mike Barker

There are two services running on two machines. First
service is running on Server1:7001 and the second on
Server2:7002

We would like to access these two services with one single
DNS name...
 
K

Kevin D. Goodknecht [MVP]

In Mike Barker <[email protected]> posted a question
Then Kevin replied below:
: There are two services running on two machines. First
: service is running on Server1:7001 and the second on
: Server2:7002
:
: We would like to access these two services with one single
: DNS name...
:
:
It is easy enough to make two RRs pointing to two different IP addresses DNS
will use round robin to hand them out but but you may get inconsistant
behavior. Do you access these services in a web browser by typeing
http://machine.domain.com:7001 and http://machine.domain.com:7002 ?

As I said, it is easy enough to make these records just open the domain.com
Forward lookup zone and create two host of the same name and give them the
IP addresses of the two machines.
 
M

Mike Barker

I tried to create the RRs, but because they were both the
same IP address it would not let me. Is there any way to
specify port number?

Im trying to create two records for:

10.1.182.113:7003
10.1.182.113:7020
-----Original Message-----
In Mike Barker <[email protected]> posted a question
Then Kevin replied below:
: There are two services running on two machines. First
: service is running on Server1:7001 and the second on
: Server2:7002
:
: We would like to access these two services with one single
: DNS name...
:
:
It is easy enough to make two RRs pointing to two different IP addresses DNS
will use round robin to hand them out but but you may get inconsistant
behavior. Do you access these services in a web browser by typeing
http://machine.domain.com:7001 and
http://machine.domain.com:7002 ?
 
K

Kevin D. Goodknecht [MVP]

In Mike Barker <[email protected]> posted a question
Then Kevin replied below:
: I tried to create the RRs, but because they were both the
: same IP address it would not let me. Is there any way to
: specify port number?
:
: Im trying to create two records for:
:
: 10.1.182.113:7003
: 10.1.182.113:7020
:
You cannot have to records with the same IP address in DNS, same name you
can, but not IP address.
I was afraid of this, you cannot specify a port in DNS, the port used is up
to the application you are using, in this case browsers use port 80 unless
you add the port after the domain name.

What are you trying to accomplish, exactly?
There may be another way, but this really needs to be posted in the IIS
group.
 
M

Mike Barker

Here is the email I got from the user..

In such case can u give a DNS name for 10.1.182.113 and
10.1.182.171
 
K

Kevin D. Goodknecht [MVP]

In Mike Barker <[email protected]> posted a question
Then Kevin replied below:
: Here is the email I got from the user..
:
: In such case can u give a DNS name for 10.1.182.113 and
: 10.1.182.171
:
This you can do:
site1 A 10.1.182.113
site1 A 10.1.182.171

DNS will use Round Robin to give these out.
 
M

Mike Barker

Would I need to change the name of the machines as well?
If I try wont it say that the machine name is already on
the network?
 
K

Kevin D. Goodknecht [MVP]

In Mike Barker <[email protected]> posted a question
Then Kevin replied below:
: Would I need to change the name of the machines as well?
: If I try wont it say that the machine name is already on
: the network?
:
Are you trying to connect to web servers on these two machines?
Or connect to the machine by a different name.
 
M

Mike Barker

Heres his answer...

Actually I have installed applications on these two
machines (WebLogic Application server). I will be using
these two with one DNS name.
 
K

Kevin D. Goodknecht [MVP]

In Mike Barker <[email protected]> posted a question
Then Kevin replied below:
: Heres his answer...
:
: Actually I have installed applications on these two
: machines (WebLogic Application server). I will be using
: these two with one DNS name.
:
That's not a problem, in the forward lookup zone for the domain you want,
but let's say it is example.com, create two "A" hosts you can name it
weblogic, if you want, then give them the IP for each machine. Then you can
access them by weblogic.example.com. The problem I see with this is DNS will
use Round Robin to give the IP out, it will aternate first one then the
other, so you don't really know which record you are going to get. Since the
two boxes answer on different ports it will be inconsistent behavior, with
connecting.
What would make more sense if they were both on the same port then you could
make two records like weblogic1 with one IP and weblogic2 with the other IP.
If the applications were listening on port 80 you would not need to enter a
port because browsers default to port 80.
you would just use weblogic1.example.com and weblogic2.example.com.
 

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