GEOIP : diverting DNS requests based on location

As per title today i'm using a pihole to handle DNS requests via dns over https protocol. So the OpenWRT router is redirecting all DNS requests to pihole to handle it.

Problem is that due to some restrictions in CHINA if i want to access some chinese websites (mostly movies) i need to use a chinese DNS resolver.

Is it possible via GEOIP to handle this? If the client is requesting a DNS for a website inside china to handle directly a chinese DNS, otherwise go to the PIHOLE. Or perhaps i can do it directly in PIHOLE somehow?

Can't you just redirect all ".cn" sites to one DNS and the rest to the other? Seems far easier.

For GEOIP to work, you need an IP, and for an IP, you need DNS :smiley:

So @eduperez's solution seems to be the best way forward :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.