Hi,
I had the following requirements, but I ran into some problems with the implementation
- The client under the router uses 114.114.114.114 to resolve the domain name, but when accessing Google, it needs to use 8.8.8.8
- In router local, I want it to be resolved with 114.114.114.114, including access to Googe
I added server=/google.com/8.8.8.8 to /etc/dnsmasq.conf.
For now, the first requirement is fine, but when I access Google on my router, it also uses 8.8.8.8 to resolve the domain name.
I tried to add option dns '114.114.114.114' under the WAN interface of /etc/config/network. At this time, I used nslookup www.google.com to test, and it correctly used 114.114.114.114 to resolve. However, when I used wget www.google.com and other commands, I found that it still used 8.8.8.8 to resolve
Under openwrt, is there a way to specify the network card to use the specified DNS, which should be able to meet my needs