Giter Club home page Giter Club logo

Comments (9)

Hornochs avatar Hornochs commented on August 22, 2024

I’ll try to build a bash script which generates the needed YAML output. It’s working what I did manually

from cache-domains.

nightah avatar nightah commented on August 22, 2024

Not sure I understand your description of the problem, the whole point of the script generation is so that your upstream DNS service such as AdGuard can be called directly and the LANCache DNS container isn't necessary anymore.

from cache-domains.

Hornochs avatar Hornochs commented on August 22, 2024

from cache-domains.

nightah avatar nightah commented on August 22, 2024

I don't personally use AdGuard and it was a community contribution by @NathanAdhitya.

It looks like the script just needs to be written to use the dnsrewrite syntax.

from cache-domains.

NathanAdhitya avatar NathanAdhitya commented on August 22, 2024

I was surprised by the sudden tag. Indeed the rules it generates is to redirect the DNS queries for domains specified in this repo to LANCache's DNS Server. I'm not sure why rewriting it directly didn't come across my mind back then 😁.

I think the change/addition would be a good idea, although a separate script might be a better idea as changing the current script directly might break existing implementations.

from cache-domains.

nightah avatar nightah commented on August 22, 2024

The intent of the scripts in this repository are to create DNS rules to point to your LANcache instance. Not to forward to another upstream DNS on a per domain basis.

The easier way to achieve this with AdGuard would be to set its singular upstream as LANCache DNS and then set that upstream to whatever you use to resolve external DNS.

from cache-domains.

Hornochs avatar Hornochs commented on August 22, 2024

from cache-domains.

martincaddick avatar martincaddick commented on August 22, 2024

Not a perfect solution but works for me. I just went to the Custom Filtering Rules and added the IPhostname like this

192.168.2.2 com.edgesuite.net
192.168.2.2 com.nsatc.net
192.168.2.2 download.windowsupdate.com
-- snip --

from cache-domains.

shinji257 avatar shinji257 commented on August 22, 2024

I edited the AdGuardHome.yaml file directly to bulk add Adguard Home rewrites for all the new DNS entries. This way at least the log records in an expected way. I manually handle it from there based on new git commits here.

Example:

  rewrites:
    - domain: assetcdn.101.arenanetworks.com
      answer: 10.0.0.209
    - domain: assetcdn.102.arenanetworks.com
      answer: 10.0.0.209
    - domain: assetcdn.103.arenanetworks.com
      answer: 10.0.0.209

from cache-domains.

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.