Conditional CustomDNS per client or client's ip
Author: clinkme4gCreated Aug 29, 2026Updated Sep 15, 2026
Labels🔨 enhancement
Can we config different rules to external users versus internal users in customDNS directive?
customDNS:
customTTL: 1h
filterUnmappedTypes: true
mapping:
www.domain.io: 192.168.1.75I have some services at home behind caddy, and to have access to my services from lan I config my dns server to blocky and it returns local ip from my home subnet using customDNS. From external network works standard provider's dns server, it returns real external ip of my home, so www.domain.io resolves to real ip address.
But I want to use blocky also as dns server from external network using DoH (also behind caddy). But in this case for any device at external network blocky will return internal ip's for all services, because of customDNS directive.
Source: 0xERR0R/blocky