Giter VIP home page Giter VIP logo

dnsfwd's Introduction

A collection of simple programs/scripts which I found useful at some point but which do not deserve a repository on their own

Admin (admin/):

  • gnt-instance-vnc-connect, open a RDP connection to a Ganeti instance from a Ganeti node

CMS (cms/):

  • joomla_to_wordpress_redirect, generate redirections for a Joomla to WordPress migration.

Content:

  • cbor2json convert CBOR to JSON
  • cleanup_html, cleanup HTML snippet
  • fods2html.xsl, convert OpenDocument plain XML spreadsheets (.fods) into HTML
  • grexpath, like grep buth with XPATH expression
  • json2cbor, convert JSON to CBOR
  • json2msgpack, convert JSON to MessagePack
  • json2yaml, convert JSON to YAML
  • msgpack2json, convert MessagePack to JSON
  • splitasciiarmor, split ASCII Armor (or PEM) files into multiple files
  • tilt-render, CLI for Ruby Tilt
  • tsv2html, convert TSV to HTML <table>
  • yaml2json, convert YAML to JSON
  • decode-hc1-covid-certificate, decode a HC1 COVID certificate
  • zlibcat, decompress raw zlib

Desktop (desktop/)

  • gui_filter, filter the content of the clipboard/selection through a UNIX command
  • keybinder, execute a program when a global keyboard shortcut is triggered
  • pulse-mute-toggle, toggle PulseAudio default source mute with desktop notification
  • pushtotalk, push-to-talk using PulseAudio
  • take-screenshot, take a screenhot
  • which-theme, which themes are available in both GTK2 and GTK3?
  • xrandr-helper, helper for xrandr
  • xsettings-query, dump XSETTINGS

Devices (device/):

  • feel-my-power, display notification about battery status of devices (eg. for wireless gamepad) using upower

Disk (disk/):

  • mount-diskimage, mount an image (ISO) using udisks2
  • xdg-open-diskimage

Misc (misc/):

  • askpass
  • sleep-exponential, like sleep with following an exponential distribution

Network (network/):

  • rmcp-discover, discover RMCP nodes (such as AMT or IPMI) on the LAN
  • ssdp-listen.py, listen for SSDP announces and dump responses
  • ssdp-search.py, launch a SSDP search request and dump responses
  • upnp-display-interfaces.py, display human friendly description of some UPnP service

System (system/):

  • fdpass, pass a file descriptor over STDOUT
  • seccompstuff/nonetwork, disable networking system calls using seccomp-bpf
  • procdump, dump a process memory without stopping it
  • socket-activate, systemd-style socket activation (like systemd-socket-activate)

Interaction with known web sites/services (websites/):

  • github-api, CLI for Github API

dnsfwd's People

Contributors

randomstuff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.