routedns icon indicating copy to clipboard operation
routedns copied to clipboard

Prefetch feature

Open charlieporth1 opened this issue 3 years ago • 11 comments

charlieporth1 avatar Jul 01 '22 22:07 charlieporth1

@folbricht I think it should be all good for you to review again. I would like you to review it in draft before I add it to full PR because I would like it to run on my servers as a test as well

charlieporth1 avatar Jul 08 '22 20:07 charlieporth1

I haven't had time to go through it fully yet. But noticed at least one race condition. Also there seem to be unrelated changes in this PR. A bunch of files are now empty, GH workflows deleted, and .idea files added. Was any of that intentional?

Not at all. that was due to a rebase issue

charlieporth1 avatar Jul 11 '22 22:07 charlieporth1

Tried to fiddle around with this, but I do not see anything prefetched. Is there some kind of logging I can check for?

cbuijs avatar Jul 18 '22 07:07 cbuijs

Tried to fiddle around with this, but I do not see anything prefetched. Is there some kind of logging I can check for?

Because my dumb a** forgot to add a dns.msg to the query prefetch request so they were all nil. :/ This has since been fixed

charlieporth1 avatar Jul 19 '22 13:07 charlieporth1

Tried to fiddle around with this, but I do not see anything prefetched. Is there some kind of logging I can check for?

Because my dumb a** forgot to add a dns.msg to the query prefetch request so they were all nil. :/ This has since been fixed

No worries :-). Will give it a try again later.

cbuijs avatar Jul 20 '22 06:07 cbuijs

Have you considered moving this feature into the existing cache? Since there's only a couple config flags this should be quite straightforward. I can give this try if you like.

Also, the PR now contains a whole bunch of permission changes which makes this quite hard to read.

folbricht avatar Jul 30 '22 06:07 folbricht

Have you considered moving this feature into the existing cache? Since there's only a couple config flags this should be quite straightforward. I can give this try if you like.

Also, the PR now contains a whole bunch of permission changes which makes this quite hard to read.

I was thinking that originally. Sorry that on the permissions changes WSL and Windows caused that because I was building on WSL and committing on Windows which for some really odd reason was changing the permissions. I am ok with you doing adding it to the cache function

charlieporth1 avatar Jul 30 '22 19:07 charlieporth1

If you don't mind, I'd like to take your branch and try to merge the prefetch into the existing cache. It might make it easier to use, definitely going to use your changes and just shuffle them around a bit and see if it works.

folbricht avatar Aug 05 '22 06:08 folbricht

Np! And if you don't have time just let me know I can do it myself. I would like to see this feature in master that's why I say that

charlieporth1 avatar Aug 06 '22 20:08 charlieporth1

configuration There is no introduction to this feature .https://github.com/folbricht/routedns/blob/master/doc/configuration.md#Static-responder

liang-hiwin avatar Aug 15 '22 14:08 liang-hiwin

There's an similar feature being tested on https://github.com/folbricht/routedns/tree/prefetch-3 at the moment (it's still draft so no docs there either).

folbricht avatar Aug 16 '22 08:08 folbricht