DNS Forwarding with OpenWrtIn network usage, we sometimes need to specify that certain domain names use a specific DNS server while ensuring that the resolution of other domain names is unaffected.Currently, I am using this setup in an internal corporate network where an Active Directory (AD) domain controller has been established. All domain members perform resolution on the same DNS server as the domain controller.This makes resolution quite cumbersome. I hope to specify that a certain domain uses the DNS server aaa.aaa.aaa.aaa, while others remain unaffected.I generally use OpenWrt as a routing device for small businesses because it is open-source and free, making it very competitive when budgets are tight.1. dnsmasq#dnsmasq is the default DNS service for OpenWrt, providing DNS forwarding functionality.Simply set it up as “domain/dns server address” as prompted.2. Rebinding Protection#This will automatically ignore RFC1918, which includes various private addresses. Since our corporate internal network uses private addresses (IPv4), it is better to keep this disabled.If you are using IPv6, the default selection should not have any impact.3. The specific configuration is shown in the image below#