randomstuff / dnsfwd Goto Github PK
View Code? Open in Web Editor NEWDNS forwarder over a (TCP) virtual circuit
License: MIT License
DNS forwarder over a (TCP) virtual circuit
License: MIT License
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.
When the connection attempt to the upstream DNS server fails, the process dies with:
<2>connect: Connection refused
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.