FsPages laisse la place à Gitlab Pages ! Voici la documentation pour vous en servir : https://docs.gitlab.com/ce/user/project/pages/index.html

C

cache_dns

cache dns

Name Last Update
sklogw_sv Loading commit data...
.gitignore Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README Loading commit data...
cache.c Loading commit data...
cache.h Loading commit data...
config.def.h Loading commit data...
config.mk Loading commit data...
dns.pl Loading commit data...
dns_to_ip.sh Loading commit data...
msg.c Loading commit data...
msg.h Loading commit data...
sklogw.1 Loading commit data...
sklogw.c Loading commit data...
sort_dns.sh Loading commit data...
SklogW
----------

S = k . log W
         the Boltzmann formula shows the relationship between entropy
         and the number of ways the atoms or molecules of a thermodynamic
         system can be arranged
            [ Wikipedia, Boltzmann's entropy formula ]

----------
what ?

a simple/tiny cache for dns query

----------
how ?

it listen on the port 53 reply with the answer if it's already stored
and make the query to dns servers (in config.h) if it doesn't exists.
When the server receive a query it extracts the name if
it's a valid name it stores the entire query in the answer file.


configuration is made in config.h

caching is just a directory in a filesystem, you may mount a ramfs or tmpfs.

The directory is as this :
    /tmp/cache_dns
    |
    |
    `_ abcd.com
       |
       `_ answer
        _ hits

every directory in the cache is the dns we wanna cache
inside we will find two file. One is the answer we got from the
dns server. The other file is the number of times we've been asked
for this dns. 
----------
why ?

because nscd or dnsmasq seemed too overkill to just caching the dns.

----------
to make it wortk you can remove all the dns in /etc/resolv.conf and just put

nameserver 127.0.0.1


----------

There is a service directory for runit : sklogw_sv
with a run, finish and log script.