Steviek411
asked on
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.
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.
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...
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...
ASKER
Is there a way doing this by editing the Hosts file instead of using DNS?
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...
ASKER
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can create multiple name/A record entries using the same name.