Hello,
I'm replying to a old Post.
Thee attached patch was Blank!
Is this true? Can I patch Dnrd, so it save the cached
Dns entries?
I'm using dnrd 2.10 in Freesco (slackware 3.9)
Also, I would like to know if I can add my own entries
kinda like a Windows Hosts file. If so, Where?
Thanx,
Kevin
--- In dnrd@y..., Darren Salt <list@y...> wrote:
The attached patch allows dnrd 2.10 to save the cache on exit and
reload it,using the existing caching code, on startup. The cache is
also saved on SIGHUP. (This is the first step towards implementing
the auto-restarting dnrd which I described a few weeks ago.)
The cache is currently saved as /tmp/dnrd.cache
and has the structure:
char[]: "#!/bin/true\ndnrd cache\n" (unterminated)
char: endianness - 1 if the cache was saved on a little endian
machine
char: sizeof (int)
{
int: packet length
char[]: packet dump
} []
If the endianness and int size bytes don't match, the cache is
ignored. I'm unable to test this properly, not having any machines
on which these have values other than 1 and 4 :-)
Also, the cache loader hasn't been tested with malformed cache
files; perhaps some of you might like to help with that.
BTW, Brad: any chance of the trailing spaces in the source files
being removed for 2.11? I have this text editor which is
(deliberately) configured to remove them... :-)
-- | Darren Salt | nr. Ashington, | d
youmustbejoking.demon.co.uk