Source IP adress

Hi,

Im using PI-HOLE as my primary DNS for home network and all clients. Then DNS requests are forwarded to my router like following :

CLIENT DEVICE => PI-HOLE => LOCAL ROUTER => INTERNET DNS

I would like to setup conditional DNS forwarding like following

CLIENT DEVICE => PI-HOLE => LOCAL ROUTER =>
(CLIENT IP 1) => INTERNET DNS 1
(CLIENT IP 2) => INTERNET DNS 2

My problem is that I cant identify original IP adress of DNS request on my router. All DNS queries seems like their origin is PI-HOLE server, so I can not create DNS rules on my router.

Questions :

  • is it somehow possible to keep original client IP adress when DNS is forwarded to router ?
  • if no (as it could be standard behaviour) , is it possible to setup upstream DNS based on client IP source adress ?

Thanks for feedback and help