Git Product home page Git Product logo

Comments (7)

huhamhire avatar huhamhire commented on July 18, 2024

目前不具备这个功能,可以自己编写脚本来实现,不过并不是所有顶级域名都适合使用泛域名解析

from huhamhire-hosts.

hdcola avatar hdcola commented on July 18, 2024

为什么?

from huhamhire-hosts.

huhamhire avatar huhamhire commented on July 18, 2024

因为并不是所有的网站都像 Google 那样可以只通过某一个单独的 IP 来代理访问所有其他服务器

from huhamhire-hosts.

hdcola avatar hdcola commented on July 18, 2024

哪是把泛解析做到多细的问题了,原则上hosts可以完全用dns来替代的

from huhamhire-hosts.

huhamhire avatar huhamhire commented on July 18, 2024

理论上按照 RFC 的规范,hosts 就应该用 DNS 来代替。但是 hosts 相比于自建 DNS 还是有资源占用方面的优势的。

另外,dnsmasq 本身也不能完全代替 DNS,而且其支持平台有限

from huhamhire-hosts.

missdeer avatar missdeer commented on July 18, 2024

不需要泛域名解析。只要hosts中每一条记录对应一条dnsmasq conf中的address规则就行。

from huhamhire-hosts.

huhamhire avatar huhamhire commented on July 18, 2024

@missdeer 不需要泛域名解析的话,自己写个脚本拿 hosts 转换下就行

from huhamhire-hosts.

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.