getdnsapi / stubby

Stubby is the name given to a mode of using getdns which enables it to act as a local DNS Privacy stub resolver (using DNS-over-TLS).
https://dnsprivacy.org/dns_privacy_daemon_-_stubby/
BSD 3-Clause "New" or "Revised" License
1.2k stars 99 forks source link

Error while build stubby over source (linux) #137

Closed jamesbond55 closed 4 years ago

jamesbond55 commented 6 years ago

Hi,

know mayby this the wrong place but i don't know where i can ask to solve my problem. So i tried to build it from over source on my rasperrs pie. Until the 'make' everthing works but when i try to execute the 'make' command i get this error:

make [1]: No rule available to create the target /src/jsmn/jsmn.h (necessary for 'convert.lo'). Makefile:53: The rule for target 'default' failed And then i get the error 2.

I don't have any idea why this happened by me but any help would be nice. I used this guide: https://stafwag.github.io/blog/blog/2018/09/09/dns-privacy-with-stubby-part1-gnulinux/

saradickinson commented 6 years ago

You need to also do git submodule update --init before building as described here: https://getdnsapi.net/documentation/readme/#building-and-external-dependencies and in the README

jamesbond55 commented 6 years ago

ok i went to the directory getdns and i tried the command (in a new terminal window). But i get the following error:

pathspec 'init' did not match any files know to git

At my first try yesterday i typed the following commands until i got the 'make' problem:

  1. sudo apt-install build-essential gut libtool autoconfig libssl-dev libbyaml-dev
  2. Then i confirmed the question with the packets with 'yes'
  3. cd /home/pi/getdns
  4. git tag
  5. git checkout v1.4.2
  6. git submodule update --git
  7. libtoolize -ci
  8. autoreconfig -fi
  9. mkdir build
  10. cd build/
  11. .../configure --prefix=/usr/local --without-libidn --without-libidn2 --enable-stub-only --with-stubby

What make i wrong?

PS: Before i forget thx for your help in general.

saradickinson commented 6 years ago

Is it a typo in item 6? git submodule update --git should be git submodule update --init

jamesbond55 commented 6 years ago

h sara thx for the answer. I test it and yes i'm made progress. The installation was successfull and activation of stubby works now. Now i'm at the testing part.

But at this point i have a little problem/question. I installed the dnsutils package to run this command: dig @127.0.0.1 -p 53000 www.startpage.com

But when i excute this command i get a connection timeout and the notification that no server could be reached. I use the default stubby.yml regarding server. The stubby service is enabled. I checked it with the systmctl command. So i'm not sure why i get the timeout. Any ideas?

jamesbond55 commented 6 years ago

Update:

ok i test it with the command on your page (dig @127.0.0.1 www.startpage.com) instead of the mentioned command above. And then i got a answer from the 127.0.0.1 (as it should be).

Then i edit the resolvconfig file in the etc folder and check the dns with the site 'www.dnsleaktest.com'. Now i see your dns server (yeah). But in the stubby logging i get the notification 'Backing off TLS on this connection - Will retry again' in a seconds intervall and in the fields 'current auth' and 'best auth' often stands 'None'. Then Stubby tries it again and then it switch to 'success' in the mentioned fields but only for short amount of time because then i have the same errors as before.

Any ideas why the TLS Connection of Stubby doesn't work? If not i guess a complete new install is the only solution? :(

saradickinson commented 4 years ago

Reviewing old issues and closing this one because of the age. Note that Stubby 0.3.0 moved to the cmake build system.