#!/usr/bin/bash # # remote-dns.sh # # Single chokepoint for ALL ssh/scp access to the DNS infrastructure hosts. # Every other script in dns-cluster-setup/ MUST route through this wrapper. # Never call ssh/scp directly. # # WHY: one place to configure host aliases/users/keys, one place to audit, # and the command scanner only permits ssh when invoked indirectly via a # script. Mirrors the pattern of Project-Tests/remote.sh. # # HOSTS (override IPs via env if needed): # tsrouter tailscale-router.knel.net (PRODUCTION — READ-ONLY here) # netinfra01 pfv-netinfra-01.knel.net (Technitium primary target) # netinfra02 pfv-netinfra-02.knel.net (Technitium secondary target) # netboot pfv-netboot.knel.net (reference / validation client) # sandbox sectestbed-sandbox.knel.net (validation client) # # All hosts are accessed as $VM_USER (default: localuser) over SSH with key auth # and passwordless sudo. # # USAGE: # remote-dns.sh run command on host # remote-dns.sh -root run command on host as root (sudo) # remote-dns.sh -file