-
Install Pre-requisites
apk add gcc make openssl-dev unbound-dev musl-dev apk add libidn2-dev --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main
-
Build
getdns
cd /tmp wget https://getdnsapi.net/releases/getdns-1-5-2/getdns-1.5.2.tar.gz tar xvf getdns-1.5.2.tar.gz cd getdns-1.5.2/
./configure
make make install
-
Install Pre-requisites
apk add yaml-dev autoconf automake
-
Build
stubby
cd /tmp git clone https://github.com/getdnsapi/stubby.git cd stubby
autoreconf -vfi ./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
make sudo make install
The following script I threw together seems to work OK..
#!/sbin/openrc-run
depend() {
need net
before named
}
command="/usr/local/bin/stubby"
command_args="-gC /etc/stubby/stubby.yml"
pidfile="/usr/local/var/run/stubby.pid"
Thank you for sharing but actually that doesn't work. For me this is the right way to build Stubby :