IngoZenz / personaldnsfilter

See http://www.zenz-solutions.de/personaldnsfilter for details
GNU General Public License v2.0
646 stars 55 forks source link

Use specific DNS server for certain domains #326

Open mepherion opened 3 days ago

mepherion commented 3 days ago

Does the current personaldnsfilter allow specifying a specific DNS server to be used for only for a specific domain instead of the global DNS server?

For example, I want home.local domain lookups to use 192.168.1.1 for DNS lookups, but everything else uses the normal DNS servers and fallback servers

computer1.home.local -> forward lookup to 192.168.1.1 adc.home.local -> forward to 192.168.1.1 google.com -> forward to normal DNS server

IngoZenz commented 3 days ago

you can add forwards to additionalhosts config via e.g. >computer.home.local 192.168.1.1

mepherion commented 2 days ago

Is that for specific hosts or entire domain?

And in your example, would computer.home.local resolve to 192.168.1.1 or would it query the 192.168.1.1 DNS server for the answer?

IngoZenz commented 2 days ago

it is specific for the host which is added.

mepherion commented 1 day ago

Would it be something you'd consider adding to allow forwarding DNS requests for a certain domain to a specified DNS server, something similar to https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Forwarding in dnscrypt-proxy?

It's not really feasible to add static mappings to individual hosts when their IP address might change, and when you have many devices