DNS solutions based on client IP address

I want to configure a bind / record driver that resolves DNS queries based on the client IP address.

We want to combine the domain names of all test environments for our web application. Instead of having many domains, such as test.mysite.com, qa.mysite.cometc. For different intermediate environments, we only want to have it www.mysite.comand configure it to which test environment it "points" to.

For this, I mean providing a web interface for setting up a testing environment. DNS queries than based on this configuration.

Do you think something like this is possible with a binding or other DNS server? And how does this compare to writing a client application that modifies a local hosts file?

+3
source share
2 answers

You can use PowerDNS with backend to return different IP addresses depending on the IP address of the client.

+3
source

You can do this with location in djbdns . Your task in creating the web interface is to write (and parse if you do not want to have a separate database server) DNS data files in the correct format.

Here is another split horizon DNS resource. This is not the same as your question, but the ideas in the article can be adapted to your needs: http://jdebp.eu./FGA/dns-split-horizon.html

+1

Source: https://habr.com/ru/post/1706851/


All Articles