major configuration update

This commit is contained in:
Miek Gieben 2011-01-25 12:54:33 +01:00
parent db6b13c411
commit 3e25a31db6
2 changed files with 29 additions and 0 deletions

View File

@ -1,3 +1,6 @@
// Copyright 2011 Miek Gieben. All rights reserved.
// Lisenced under the GPLv2
/*
Funkensturm rewrites DNS packets in the broadest sense of the word.
The rewriting can include delayed (re)sending of packets, (re)sending
@ -12,5 +15,29 @@ The configuration of Funkensturm is done by writing it in Go - a
separate configuration language was deemed to be unpractical and
would limit the possibilities.
Usage:
funkensturm [flags]
The flags are:
-sserver
Listener address and port for the server. This has to be
specified as: address:port, for instance 127.0.0.1:8053.
This is also the default.
-rserver
Remote server address in address:port format. This can be
repeated, for each rserver a resolver channel is created.
The first begin `qr[0]`, the second `qr[1]`, etc.
The default is: 127.0.0.1:53
Debugging flags:
-verbose
Print packets as they flow through Funkensturm.
Predefined configurations are shown in `config_delay.go` and `config_sign.go`. The
default `config.go` implements a transparant proxy.
Also see: http://www.miek.nl/blog/archives/2011/01/23/funkensturm/index.html
*/
package documentation

View File

@ -6,6 +6,7 @@
package main
/* TODO log package */
import (
"os"
"flag"
@ -228,6 +229,7 @@ func main() {
forever:
for {
// Wait for a signal to stop
// TODO(mg) check for ^Z
select {
case <-signal.Incoming:
println("Signal received, stopping")