DNSCurve on Haiku
Updated: June 17, 2025
This page is about building and running DNSCurve software on the Haiku operating system. My Haiku laptop runs a nightly image kept up to date with SoftwareUpdater.
Please also see DNSCurve.io for more DNSCurve information.
dq
dq is a command-line DNS lookup tool that supports DNSCurve. It's easy to build and use on Haiku. Be sure to check for the most recent version of the software.
pkgman install wget
wget https://mojzis.com/software/dq/dq-20161210.tar.gz
tar zxf dq-20161210.tar.gz
cd dq-20161210
echo "-lnetwork" > conf-libs
echo "/boot/system/non-packaged/bin" > conf-bin
echo "/boot/system/non-packaged/documentation/man" > conf-man
cp conf-bin conf-sbin
make
make install
wget https://mojzis.com/software/dq/dq-20161210.tar.gz
tar zxf dq-20161210.tar.gz
cd dq-20161210
echo "-lnetwork" > conf-libs
echo "/boot/system/non-packaged/bin" > conf-bin
echo "/boot/system/non-packaged/documentation/man" > conf-man
cp conf-bin conf-sbin
make
make install
That's it! If your resolv.conf is not yet configured, you should also issue something like:
echo "nameserver 8.8.8.8" > /etc/resolv.conf
Replace 8.8.8.8 with whatever DNS resolver you prefer.
Run it
Try a query like the one in the screenshot below:
dq a example.com
dq -a mx dnscurve.io uz5dns1jz8x7lc50lq7zqp6csz2yw89cj3pbluwcsxbw0bgxyj9fsp.dnscurve.io
dq -a mx dnscurve.io uz5dns1jz8x7lc50lq7zqp6csz2yw89cj3pbluwcsxbw0bgxyj9fsp.dnscurve.io
Here's a screenshot of what may be the first DNSCurve query sent from Haiku:
