Coder Social home page Coder Social logo

Comments (8)

zfl9 avatar zfl9 commented on July 19, 2024

Yes.

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

Of course you can remove any address from chnroute.ipset, depending on yourself.

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

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.

xlighting2017 avatar xlighting2017 commented on July 19, 2024

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.

zfl9 avatar zfl9 commented on July 19, 2024

There is no perfect solution, but there are many ways to avoid this:

  1. Use dnsmasq as the dns server, for gfwlist domain names, tell dnsmasq, use 8.8.8.8 dns server (via proxy), for other domain names, use chinadns-ng to resolve them. This is the solution for ss-tproxy v4.x. This can avoid 99% of special cases.
  2. Remove these special addresses and reserved addresses from chnroute.ipset, chnroute6.ipset.

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

After actual testing, I think the first solution is the closest to perfection.
It is compatible with most usage scenarios.

from chinadns-ng.

xlighting2017 avatar xlighting2017 commented on July 19, 2024

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.

zfl9 avatar zfl9 commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.