0

I'm looking for some help. We got a WAN, which includes several different locations across US and Europe. Now I have a need that when someone SSH to a DNS, he will get connected to a server close to his location.

When I was looking around for info, all I could find is DNS redirect based on Geo location.

But I would need it for internal IPs, so no Geo location information available.

And looking at the DNS record types, I don't think I can set it up with just another DNS record.

2
  • What kind of DNS are you using internally? You should be able to define DNS resolution to local resources internally. Nov 29, 2015 at 2:55
  • Using PowerDNS.
    – derchris
    Nov 29, 2015 at 11:22

3 Answers 3

1

You can do GeoDNS for Internal networks using Perl Standford::DNSServer. Check out this article. You can just delegate that zone to this from PowerDNS.

0

If you have the resources available, I would suggest Anycast. It uses "loopholes" in routing protocols to the nearest (network-wise) server.

[Client A] --- (rtr 1) ----------- (rtr 2) --- [Client B] | | [server 1] [server 2]

It works by server 1 & server 2 listening on the same address and rtr 1 and rtr 2 both advertising that ip address/route.

1
  • Any cast is a little overkill for this Nov 29, 2015 at 17:00
0

This can be done with bind and views, set an acl for each ip range, then configure a zone for each view.

This is the same a geodns, but you are feeding it a custom range.

For powerdns, use the GeoIP dns with a custom range per their doc

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .