Giter Site home page Giter Site logo

Comments (9)

tr9stan avatar tr9stan commented on July 22, 2024 1

@VibroAxe
🤣 ... Oh man must have missed that. Thank you! I am going to assume that in the cache_domains.json "names" are the proper services to reference. Awesome work btw!

from cache-domains.

lwoody7110 avatar lwoody7110 commented on July 22, 2024

I forgot to ask, is there a method to clean up the cache as keeping Windows Updates for perhaps 10 years is a bit excessive.

from cache-domains.

Crabbey avatar Crabbey commented on July 22, 2024

The best way to do this is to exclude it from your DNS container.
For lancache-dns, the best way to do this is to take advantage of the CACHE_DOMAINS_REPO flag

By default, the flag on the lancache-dns container is set to this repo. If you were to fork it and remove the wsus entry from cache_domains.json, the DNS container would not load those hostnames.

The relevant section in the lancache-dns README is called "Custom forks and branches", which gives far more detail on this. The additional argumet you would need, copied and pasted from there is:
-e CACHE_DOMAINS_REPO="https://github.com/your-username/cache-domains.git"

As for cleaning up, not really at the moment. I have been playing with writing a "cache interrogator", to let advanced users take a peek at what is in their cache, but it's nowhere near ready.
It's worth noting that every cached file contains a KEY: header, which will begin KEY: wsus/ and will continue with the rest of the URL, but this can be quite an intensive operation to seek out and identify.

from cache-domains.

lwoody7110 avatar lwoody7110 commented on July 22, 2024

Could I work around it by manually entering the WSUS domains in windowsupdates.txt into the Windows DNS Conditional Forwarders section? ie: Effectively getting an earlier-in-the-chain DNS resolver to answer the client before Lancache intercepts the client query?

from cache-domains.

VibroAxe avatar VibroAxe commented on July 22, 2024

If you are using lancache-dns somewhere in your chain just specify -e DISABLE_WSUS and it not intercept the data. If you are using your own DNS interception then remove the wsus domains (https://github.com/uklans/cache-domains/blob/master/windowsupdates.txt).

You don't need to remove the mapping from monolithic itself that just helps to categorise data to prevent collisions.

from cache-domains.

tr9stan avatar tr9stan commented on July 22, 2024

@VibroAxe
First time user of LanCache here. When you said "If you are using lancache-dns somewhere in your chain just specify -e DISABLE_WSUS", did you mean put DISABLE_WSUS=true in the .env file? This should disable that list?

from cache-domains.

VibroAxe avatar VibroAxe commented on July 22, 2024

Correct, the -e is for a docker run, the .env format is as you suggested

from cache-domains.

tr9stan avatar tr9stan commented on July 22, 2024

@VibroAxe
Thank you! This issue was the first time I have seen the DISABLE_WSUS environmental variable. Is there a list of "hidden" variables and accepted values that can be shared? Maybe also a description of what each variable does?

from cache-domains.

VibroAxe avatar VibroAxe commented on July 22, 2024

Yup, in the documentation 🤣 https://lancache.net/docs/containers/dns/

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.