diff options
Diffstat (limited to 'examples/source/dns-cache')
-rw-r--r-- | examples/source/dns-cache/data/root/ip/127.0.0.1 | 0 | ||||
-rw-r--r-- | examples/source/dns-cache/data/root/ip/192.168.0 | 0 | ||||
-rw-r--r-- | examples/source/dns-cache/data/root/ip/192.168.1 | 0 | ||||
-rw-r--r-- | examples/source/dns-cache/data/root/ip/192.168.2 | 0 | ||||
-rw-r--r-- | examples/source/dns-cache/data/root/ip/192.168.3 | 0 | ||||
-rw-r--r-- | examples/source/dns-cache/data/root/ip/192.168.4 | 0 | ||||
l--------- | examples/source/dns-cache/data/root/servers/168.192.in-addr.arpa | 1 | ||||
-rw-r--r-- | examples/source/dns-cache/data/root/servers/@ | 13 | ||||
-rw-r--r-- | examples/source/dns-cache/data/root/servers/example.com | 1 | ||||
-rw-r--r-- | examples/source/dns-cache/dependencies | 2 | ||||
-rw-r--r-- | examples/source/dns-cache/env/CACHESIZE | 1 | ||||
-rw-r--r-- | examples/source/dns-cache/env/IPSEND | 1 | ||||
-rw-r--r-- | examples/source/dns-cache/env/ROOT | 1 | ||||
-rw-r--r-- | examples/source/dns-cache/logger | 1 | ||||
-rwxr-xr-x | examples/source/dns-cache/run | 14 | ||||
-rw-r--r-- | examples/source/dns-cache/type | 1 |
16 files changed, 36 insertions, 0 deletions
diff --git a/examples/source/dns-cache/data/root/ip/127.0.0.1 b/examples/source/dns-cache/data/root/ip/127.0.0.1 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/examples/source/dns-cache/data/root/ip/127.0.0.1 diff --git a/examples/source/dns-cache/data/root/ip/192.168.0 b/examples/source/dns-cache/data/root/ip/192.168.0 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/examples/source/dns-cache/data/root/ip/192.168.0 diff --git a/examples/source/dns-cache/data/root/ip/192.168.1 b/examples/source/dns-cache/data/root/ip/192.168.1 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/examples/source/dns-cache/data/root/ip/192.168.1 diff --git a/examples/source/dns-cache/data/root/ip/192.168.2 b/examples/source/dns-cache/data/root/ip/192.168.2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/examples/source/dns-cache/data/root/ip/192.168.2 diff --git a/examples/source/dns-cache/data/root/ip/192.168.3 b/examples/source/dns-cache/data/root/ip/192.168.3 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/examples/source/dns-cache/data/root/ip/192.168.3 diff --git a/examples/source/dns-cache/data/root/ip/192.168.4 b/examples/source/dns-cache/data/root/ip/192.168.4 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/examples/source/dns-cache/data/root/ip/192.168.4 diff --git a/examples/source/dns-cache/data/root/servers/168.192.in-addr.arpa b/examples/source/dns-cache/data/root/servers/168.192.in-addr.arpa new file mode 120000 index 0000000..caa12a8 --- /dev/null +++ b/examples/source/dns-cache/data/root/servers/168.192.in-addr.arpa @@ -0,0 +1 @@ +example.com
\ No newline at end of file diff --git a/examples/source/dns-cache/data/root/servers/@ b/examples/source/dns-cache/data/root/servers/@ new file mode 100644 index 0000000..ca40b38 --- /dev/null +++ b/examples/source/dns-cache/data/root/servers/@ @@ -0,0 +1,13 @@ +198.41.0.4 +192.228.79.201 +192.33.4.12 +128.8.10.90 +192.203.230.10 +192.5.5.241 +192.112.36.4 +128.63.2.53 +192.36.148.17 +192.58.128.30 +193.0.14.129 +199.7.83.42 +202.12.27.33 diff --git a/examples/source/dns-cache/data/root/servers/example.com b/examples/source/dns-cache/data/root/servers/example.com new file mode 100644 index 0000000..0c4b6f6 --- /dev/null +++ b/examples/source/dns-cache/data/root/servers/example.com @@ -0,0 +1 @@ +192.168.1.1 diff --git a/examples/source/dns-cache/dependencies b/examples/source/dns-cache/dependencies new file mode 100644 index 0000000..112b3f2 --- /dev/null +++ b/examples/source/dns-cache/dependencies @@ -0,0 +1,2 @@ +init-urandom +init-lan diff --git a/examples/source/dns-cache/env/CACHESIZE b/examples/source/dns-cache/env/CACHESIZE new file mode 100644 index 0000000..8425fb4 --- /dev/null +++ b/examples/source/dns-cache/env/CACHESIZE @@ -0,0 +1 @@ +2097152 diff --git a/examples/source/dns-cache/env/IPSEND b/examples/source/dns-cache/env/IPSEND new file mode 100644 index 0000000..d690dc0 --- /dev/null +++ b/examples/source/dns-cache/env/IPSEND @@ -0,0 +1 @@ +0.0.0.0 diff --git a/examples/source/dns-cache/env/ROOT b/examples/source/dns-cache/env/ROOT new file mode 100644 index 0000000..d4dba8d --- /dev/null +++ b/examples/source/dns-cache/env/ROOT @@ -0,0 +1 @@ +/run/service/dns-cache/data/root diff --git a/examples/source/dns-cache/logger b/examples/source/dns-cache/logger new file mode 100644 index 0000000..54ef42e --- /dev/null +++ b/examples/source/dns-cache/logger @@ -0,0 +1 @@ +dns-cache-log diff --git a/examples/source/dns-cache/run b/examples/source/dns-cache/run new file mode 100755 index 0000000..b364c97 --- /dev/null +++ b/examples/source/dns-cache/run @@ -0,0 +1,14 @@ +#!/command/execlineb -P +fdmove -c 2 1 +s6-envuidgid dnscache +s6-envdir env +import ETH0_IP4 +export IP ${ETH0_IP4} +s6-softlimit -m 4000000 +pipeline -d +{ + redirfd -r 0 /dev/urandom + s6-head -c 128 +} +unexport LASTPID +dnscache diff --git a/examples/source/dns-cache/type b/examples/source/dns-cache/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/examples/source/dns-cache/type @@ -0,0 +1 @@ +longrun |