diff options
Diffstat (limited to 'net/djbdns-run/files/dnscache-showctl.sh')
-rw-r--r-- | net/djbdns-run/files/dnscache-showctl.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/djbdns-run/files/dnscache-showctl.sh b/net/djbdns-run/files/dnscache-showctl.sh new file mode 100644 index 00000000000..693668f7949 --- /dev/null +++ b/net/djbdns-run/files/dnscache-showctl.sh @@ -0,0 +1,20 @@ +#!@SH@ +# (c) Copyright 2001-2002 Jonathan de Boyne Pollard. All rights reserved. "Moral" rights asserted. +# Permission is hereby granted to distribute this script unmodified. +for i do ( + cd "$i" + echo "$i" | sed -e 's/./*/g' + echo "$i" + echo "$i" | sed -e 's/./*/g' + echo + echo '+++ Configuration options:' + egrep '[A-Za-z0-9_]+=' run + ( cd env 2>/dev/null && grep "^" /dev/null * ) + echo + echo '+++ Authorised client IP address prefixes:' + ls -1 root/ip + echo + echo '+++ Hardwired content server IP addresses:' + cd root/servers && grep "^" /dev/null * + echo +); done |