how do I create a record on my DNS server or host record that would point a FQDN to 2 different IP address?

Hello,

how do I create a record on my DNS server or host file that would point a FQDN to 2 different IP addresses? The reason is I am trying to setup a redundant tunnel for my branch offices. The branch offices need to connect to VPN.Mydomain.com at all times no matter which link was down. Currently one of my branch offices cannot reach vpn.Mydomain.com (The get "Unknown host" message when trying to ping the name) so I was told to create A records or to modify the host file. The only thing is A records only let you create one ip to one name. Please help.
LVL 1
Steviek411Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

grbladesCommented:
Hi Steviek411,
You can create multiple name/A record entries using the same name.
0
lrmooreCommented:
You can create multiple A records with different names to different IP addresses, then create multiple CNAME records that point "VPN" to multiple different A records.
For example:
vpn1 A 1.2.3.4
vpn2 A 4.3.2.5
vpn CNAME vpn1
vpn CNAME vpn2

Beware that DNS is not intelligent enough to answer with the one that is currently "up", it will round-robin the answers.
If you're looking for a solution that only provides the alternate IP if the first one is "down", then you're looking for a non-DNS answer - something like Cisco's distributed director function...
0
Steviek411Author Commented:
Is there a way doing this by editing the Hosts file instead of using DNS?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

lrmooreCommented:
You can have multiple entries in your hosts file, but it still won't help if the first one is dead. The first entry of the hosts file will be cached...
0
Steviek411Author Commented:
Ok the example you gave
vpn1 A 1.2.3.4
vpn2 A 4.3.2.5
vpn CNAME vpn1
vpn CNAME vpn2

How would I do this if I only have one name. For example i have
VPN.domain.com A 1.2.3.4
VPN.domain.com A 9.8.7.6

How would the CNAME look?
0
marcin79Commented:
as far i understand the problem is that you have 2 lines to THE SAME network (ex. vpn through two different providers) The question is why do you want do it by dns entries and not by routing ?
IMHO it *could* be difficult to do a one-name-2ip's solution. I would rather preffer a routing solution - so if one link is down try to use another link.

other solution:
CNAME and A record relay on the dns server, so if the dns is down on the one link you don't have a dns server at all.  YOU COULD try to set up a two dns servers with TWO DIFFERENT A entries one on the *end* of the first link and the second on the *end* of the second link. Both of them should be a master of specified zone. then you should enter according entries in the one and seccond dns servers (depending on the link). Then on the clients machines you should enter as the primary dns (more reliable) and the second one as the slave one.

BE AWARE that this is a very dangerous solution and if you will not maintain those two servers properly this *may* cause serius problems.

Hope this helps

Regards
Marcin
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lrmooreCommented:
Given this:
  VPN.domain.com A 1.2.3.4
  VPN.domain.com A 9.8.7.6

You have two options. Leave it as is with two A records to two different IP's
or create a CNAME
  VPN1.domain.com A 1.2.3.4
  VPN2.domain.com A 9.8.7.6
  VPN.domain.com CNAME VPN1.domain.com
  VPN.domain.com CNMAE VPN2.domain.com

What version VPN Client are you using? Many of them have a built-in facility for a backup IP address (Cisco's for example)...


0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.