From bcd06bfc611a980efebb395a3a99cc42afd6e2f7 Mon Sep 17 00:00:00 2001 From: ohrensessel Date: Sun, 4 May 2014 17:09:14 +0200 Subject: [PATCH] hack: added as forwarding zone for dnsmasq and bind (IPv4 only) --- bind/hack.v4 | 32 ++++++++++++++++++++++++++++++++ dnsmasq/hack.v4 | 9 +++++++++ 2 files changed, 41 insertions(+) create mode 100644 bind/hack.v4 create mode 100644 dnsmasq/hack.v4 diff --git a/bind/hack.v4 b/bind/hack.v4 new file mode 100644 index 0000000..f28f588 --- /dev/null +++ b/bind/hack.v4 @@ -0,0 +1,32 @@ +# config as of http://wiki.hamburg.ccc.de/ChaosVPN:DNS +# only works if host is directly in chaosvpn? + +zone "hack" { + type static-stub; + server-addresses { 172.31.0.5; }; +}; + +zone "31.172.in-addr.arpa" { + type static-stub; + server-addresses { 172.31.0.5; }; +}; + +zone "100.10.in-addr.arpa" { + type static-stub; + server-addresses { 172.31.0.5; }; +}; + +zone "101.10.in-addr.arpa" { + type static-stub; + server-addresses { 172.31.0.5; }; +}; + +zone "102.10.in-addr.arpa" { + type static-stub; + server-addresses { 172.31.0.5; }; +}; + +zone "103.10.in-addr.arpa" { + type static-stub; + server-addresses { 172.31.0.5; }; +}; diff --git a/dnsmasq/hack.v4 b/dnsmasq/hack.v4 new file mode 100644 index 0000000..5fcc862 --- /dev/null +++ b/dnsmasq/hack.v4 @@ -0,0 +1,9 @@ +# config as of http://wiki.hamburg.ccc.de/ChaosVPN:DNS +# only works if host is directly in chaosvpn? + +server=/hack/172.31.0.5 +server=/31.172.in-addr.arpa/172.31.0.5 +server=/100.10.in-addr.arpa/172.31.0.5 +server=/101.10.in-addr.arpa/172.31.0.5 +server=/102.10.in-addr.arpa/172.31.0.5 +server=/103.10.in-addr.arpa/172.31.0.5