Shane Callanan
Shane Callanan

Reputation: 2305

Vary DNS resolution according to requesting IP

I'm looking for a way of getting our DNS server to do a reverse look-up in order to resolve placeholder values differently according to the requesting machine's IP address.

Variables

Conditions

I've already tried to do this with BIND DNS, following the implementation laid out here, but I have not made any progress worth noting....

The main problem I'm having is that I cannot allow the DNS to resolve an IP address from the placeholder value, it needs to be a domain name.

Surely someone out there has successfully done what I'm failing to do

Upvotes: 0

Views: 96

Answers (1)

krisku
krisku

Reputation: 3993

You need to have two separate zone files and route access to the correct zone file based on views. This is usually called split-horizon DNS and there are plenty of examples on the net, e.g.

http://www.zytrax.com/books/dns/ch6/#split-view

http://www.knowplace.org/pages/howtos/split_view_with_bind_9_howto.php

Upvotes: 1

Related Questions