Giter VIP home page Giter VIP logo

dnsfwd's Issues

dnsfwd shutdown after running for a while

So far, dnsfwd has shut down with two different errors, IF it has answered dns queries:

dnsfwd --bind-udp 127.0.0.1:9999 --connect-tcp 127.0.0.1:53
<2>shutdown: Socket is not connected

dnsfwd --bind-udp 127.0.0.1:9999 --connect-tcp 127.0.0.1:53 --logformat human --loglevel 5
CRIT: shutdown: Socket is not connected

It had managed to stay up for hours, when no query was thrown at it.

Dies when connection fails

When the connection attempt to the upstream DNS server fails, the process dies with:

<2>connect: Connection refused

error: use of undeclared identifier 'SO_DOMAIN'

Getting the following during make on macOS (OS X / Darwin):

/dnsfwd/src/dnsfwd.hpp:137:7: warning: suggest braces around initialization of subobject [-Wmissing-braces]
boost::asio::buffer( &network_size_, sizeof(network_size_) ),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/dnsfwd/src/server.cpp:48:34: error: use of undeclared identifier 'SO_DOMAIN'
if (getsockopt(fd, SOL_SOCKET, SO_DOMAIN, &domain, &len) != 0) {
^
/dnsfwd/src/server.cpp:60:34: error: use of undeclared identifier 'SO_PROTOCOL'
if (getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, &protocol, &len) != 0) {
^
1 warning and 2 errors generated.
make[2]: *** [CMakeFiles/dnsfwd.dir/src/server.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /dnsfwd/src/service.cpp:24:
/dnsfwd/src/dnsfwd.hpp:137:7: warning: suggest braces around initialization of subobject [-Wmissing-braces]
boost::asio::buffer( &network_size_, sizeof(network_size_) ),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Supposedly, SO_DOMAIN is Linux only and SO_PROTOCOL is not defined on OS X and platform-dependent:
https://trac.torproject.org/projects/tor/ticket/13571
http://archives.seul.org/tor/bugs/Oct-2014/msg01489.html
http://tor-dev.torproject.narkive.com/sBOppDHG/torsocks-2-0-0-rc1-release
dgoulet/torsocks@1e4e20b

https://stackoverflow.com/questions/24418930/os-x-getsockopt-no-so-protocol

I realize this is prototype project written on Linux. It would be nice to be able to built and use it on non-Linux BSD-like platforms such OS X, since the project is the implementation of a great concept.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.