How to install dqcache

dqcache, a recursive resolver that supports DNSCurve, is very easy to compile, install and run.

Binary packages

Binary packages are available for Debian, FreeBSD, and perhaps other systems.

Build and install dqcache

    wget https://mojzis.com/software/dq/dq-20161210.tar.gz
    (SHA256: 24fc6ea8ad105bd2fb42ee4b79768529a40e417832b5963b81ee208cb2bb256d)
    wget https://mojzis.com/software/dq/dq-20161210.tar.gz.asc
    gpg --verify dq-20161210.tar.gz.asc dq-20161210.tar.gz
    gunzip < dq-20161210.tar.gz | tar -xf -
    cd dq-20161210

    make
    sudo make install

Alternatively, dqcache is available from github:

    git clone https://github.com/janmojzis/dq.git
    cd dq
    make
    sudo make install

Configure dqcache

    #under root - create dqcache root directory
    sudo mkdir -p /etc/dqcache/root/servers /etc/dqcache/env
    sudo echo 10000000 > /etc/dqcache/env/CACHESIZE
    sudo echo 127.0.0.1 > /etc/dqcache/env/IP
    sudo echo "/etc/dqcache/root" > /etc/dqcache/env/ROOT

    #under root - setup dqcache root servers
    sudo sh -c '(
    echo "198.41.0.4"
    echo "2001:503:ba3e::2:30"
    echo "192.228.79.201"
    echo "2001:500:84::b"
    echo "192.33.4.12"
    echo "2001:500:2::c"
    echo "199.7.91.13"
    echo "2001:500:2d::d"
    echo "192.203.230.10"
    echo "192.5.5.241"
    echo "2001:500:2f::f"
    echo "192.112.36.4"
    echo "198.97.190.53"
    echo "2001:500:1::53"
    echo "192.36.148.17"
    echo "2001:7fe::53"
    echo "192.58.128.30"
    echo "2001:503:c27::2:30"
    echo "193.0.14.129"
    echo "2001:7fd::1"
    echo "199.7.83.42"
    echo "2001:500:9f::42"
    echo "202.12.27.33"
    echo "2001:dc3::35"
    ) > /etc/dqcache/root/servers/@'

    #under root - create dqcache user
    sudo useradd dqcache

Run dqcache

    #under root - run dqcache server
    sudo envuidgid dqcache envdir /etc/dqcache/env dqcache