txthinking / brook

A cross-platform programmable network tool
https://brook.app
GNU General Public License v3.0
14.5k stars 2.39k forks source link

bypassDNS does not work when it is a private address #1298

Closed haofanurusai closed 7 months ago

haofanurusai commented 10 months ago

ENV: openwrt 22.03.5 / ipk installed / tproxy bypassCIDR4: 172.16.0.0/12 bypassDomain: cn edu bypassDNS: 172.17.0.1 openwrt lan ip is 192.168.1.1 DNS forwarding correctly configured

PROBLEM:

  1. xxx.cn (an internal domain only recorded in the internal DNS) cannot be resolved
  2. nslookup xxx.cn -> no response
  3. add xxx.cn to hosts -> OK (this is not a good workaround because its ip is dynamic)
  4. turn off openwrt DNS forwarding -> OK
  5. set system dns manually -> OK (In condition 4&5, google, etc. cannot be resolved correctly as usual, as it is a polluted dns)
txthinking commented 7 months ago

v20240214