Closed BlueFyre closed 4 years ago
Thanks for sharing. TI appreciate you sharing a possible fix.
I've been needing to re-factor how Stubby is built since they made several updates since I first created this. https://github.com/MatthewVance/stubby-docker/issues/4
To be honest, I've neglected this project lately. Unbound has improved some of the DNS over TLS features in more recent releases so I've went back to relying solely on it. I need to dig back into Stubby to re-compare the feature sets.
If they've managed to close the feature gap it would certainly make it simpler to just run one server. Let me know if you get around to comparing the features. Thanks in advance
It looks like the feature gaps remain. Unbound plans to release connection reuse in the coming months per https://github.com/NLnetLabs/unbound/issues/47. I didn't have any success confirming 'Strict' mode support or padding queries to hide query size.
Unbound 1.9.0 did include some performance improvements. Namely, TLS session resumption support and TCP fast open support.
Actually, after re-reading the change log, TCP fast open was released before 1.9.0.
EDIT: The example needed further tweaks after testing.
I'm looking into re-factoring to use cmake. I have some testing to do, but think I have the commands worked out:
git checkout "${VERSION_GETDNS}" && \
git submodule update --init && \
mkdir build && \
cd build && \
cmake \
-DBUILD_STUBBY=ON \
-DENABLE_STUB_ONLY=ON \
-DCMAKE_INSTALL_PREFIX=/opt/stubby \
-DOPENSSL_INCLUDE_DIR=/opt/openssl \
-DOPENSSL_CRYPTO_LIBRARY=/opt/openssl/lib/libcrypto.so \
-DOPENSSL_SSL_LIBRARY=/opt/openssl/lib/libssl.so \
-DUSE_LIBIDN2=OFF \
-DBUILD_LIBEV=OFF \
-DBUILD_LIBEVENT2=OFF \
-DBUILD_LIBUV=OFF ..&& \
cmake .. && \
make && \
make install
It also requires cmake and check be installed (put in ${build_deps}
).
As of getdns 1.6.0 they seemed to have switched to using cmake instead of autoconf/libtool
Might not be optimal but this got mine going: