Comments (8)
Yes.
from chinadns-ng.
Of course you can remove any address from chnroute.ipset, depending on yourself.
from chinadns-ng.
The reason for adding these addresses such as 127.0.0.1 by default is that when the upstream of china-dns is the internal dns server, the normal parsing result including these ips may occur.
from chinadns-ng.
Thanks, so I think there is a "flaw" here...
for example, if I'm working in an Intranet, while the upstream ISP DNS has pollution the result with addresses like 127.0.0.1, I'll be in trouble...
it's the "ignore any other results" that causes the "flaw"
how about we "wait until both DNSs return, and compare the results"?
Edit: this is not a good solution too, I think we may need a better idea...
from chinadns-ng.
There is no perfect solution, but there are many ways to avoid this:
- Use
dnsmasq
as the dns server, forgfwlist
domain names, tell dnsmasq, use8.8.8.8
dns server (via proxy), for other domain names, usechinadns-ng
to resolve them. This is the solution forss-tproxy v4.x
. This can avoid 99% of special cases. - Remove these special addresses and reserved addresses from chnroute.ipset, chnroute6.ipset.
from chinadns-ng.
After actual testing, I think the first solution is the closest to perfection.
It is compatible with most usage scenarios.
from chinadns-ng.
hmmm, I was hoping to reduce the dependency of other components, especially dnsmasq;(for its bad performance in searching/parsing long config files)
anyway, thanks for the effort!
from chinadns-ng.
If you don't like dnsmasq, you can customize chnroute.ipset yourself. This method is also very simple and effective.
from chinadns-ng.
Related Issues (20)
- Openwrt中运行一段时间后,chinadns-ng会出现大概率返回超时的情况 HOT 54
- 新功能: 将tag:gfw的解析结果也加入ipset/nftset HOT 2
- 关于 --add-tagchn-ip --add-taggfw-ip 的两点建议 HOT 16
- 动态添加IP问题(选项没指定,语法错误) HOT 19
- 请教redsocks和iptables搭配chinadns-ng进行DNS分流的食用方法 HOT 20
- 编译时报错 HOT 3
- mirrors.aliyuncs.com 解析失败 HOT 13
- nftset flags: timeout HOT 15
- chinadns-ng和mosdns有啥区别呢 HOT 1
- ac68u上的崩溃日志 HOT 3
- 用 int 承接 ts 会导致 2038问题, 建议所有ts都用time_t 或者 long long HOT 1
- 如何对查询结果附加(append)三方DNS记录 HOT 3
- 对于tag:none的组能否添加ipset的支持 HOT 5
- 问一下, chinadns-ng如果接管127.0.0.1:53后会缓存dns结果吗? HOT 2
- 监听0.0.0.0的时候能否连带ipv6的 [::]也监听了呢? HOT 3
- DNS上游没有响应任何查询,并非死循环。 HOT 48
- 对分流有个优化思路 HOT 1
- 问一个关于ChinaDNS-NG 域名默认标签“智能dns”的逻辑问题 HOT 7
- ChinaDNS-NG 2.0 HOT 60
- 可信DNS解析结果没有加入ipset的集合中,麻烦看一下是配置哪里有问题哦 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chinadns-ng.