A
A
aroun2017-08-16 22:05:53
linux
aroun, 2017-08-16 22:05:53

How to direct requests to dns depending on the subnet of the requester?

There is dnsmasq, it is perfectly able to distribute requests between parent dns in the confine of the form

cat /etc/dnsmasq.conf
server=192.168.104.2
server=192.168.105.2
server=192.168.106.2
server=192.168.107.2
server=192.168.108.2

Through which higher DNS the request is resolved is not clear, but there is a desire to somehow compare incoming and outgoing requests.
Those. so that requests from Alice (192.168.10.xxx) go through server=192.168.104.2and from Bob (192.168.20.xxx) - through server=192.168.104.5
Either I didn’t read the mana, or he doesn’t know how.
Still people advise to do through iptables, what do you say?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2017-08-17
@ky0

I join those advising to sort it out at the network level.
Why would you want such behavior at all? Reliability will decrease if only one server serves each client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question