#!/bin/sh # Run the reference Ruby dnstraverse — the exact engine behind dns.squish.net. # Used to generate golden outputs for comparing ExploreDNS behaviour. # # Setup (one-time, no sudo needed): # gem install dnsruby -v 1.72.4 --user-install --no-document # gem install logger -v 1.6.6 --user-install --no-document # # The tools/dnstraverse-ruby clone is gitignored (GPL-3, dev-only). If missing: # git clone https://github.com/squish/dnstraverse tools/dnstraverse-ruby # then comment out the `require 'rdoc/usage'` line in bin/dnstraverse # (rdoc/usage was removed from Ruby after 1.8). # # Usage: tools/golden/run-reference.sh [dnstraverse options] DOMAIN set -eu DIR="$(cd "$(dirname "$0")/../dnstraverse-ruby" && pwd)" exec ruby -I"$DIR/lib" "$DIR/bin/dnstraverse" "$@"